You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to modify event payload before it goes through reducers and epics.
Solution
Interceptor
Declare 'Interceptor' type. Interceptor is a function that accepts and returns event. Also, if interceptor returns null or undefined we assume that event have been canceled.
typeInterceptor<TextendsEvent>=(event: T)=>T?
Module
Extend 'Module' type with 'interceptors' property
typeModule={
...
interceptors?: Interceptor[];}
Helper
Create helper function to intercept only given type of events.
TBD
The text was updated successfully, but these errors were encountered: