Fork me on GitHub

Is it possible to add interceptors to all registered events without having to go in and add the interceptor to each and every event one by one? I'm thinking of use-cases where you'd want to add some middleware-like behavior for all http-fx requests your application dishes out - wherein you'd have some interceptor you'd like all the events to go through (e.g. adding a required header to all requests)


that doesn’t work if you want to add interceptors from events added from libraries?


being able to add global interceptors is good enough for me, atm - I'll make it work


there is an atom in re-frame/registrar in that holds all of the registered events, . you could muck with that, but it’s potentially a very bad idea ™️

💯 4

I'll take a look, thanks