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
In the this example, currently, the middleware does not take in account two important aspects of middlewares:
the next method
the return value mechanism
The next method enables you to break the middleware chain in certain circumstances.
The return value mechanism allows you to bubble up promises or return values to the entity which invoked the dispatch method.
The text was updated successfully, but these errors were encountered:
dht
changed the title
Middleware example
No next method or return value in the useReducer + middleware example
May 3, 2022
In the this example, currently, the middleware does not take in account two important aspects of middlewares:
next
methodreturn value
mechanismThe
next
method enables you to break the middleware chain in certain circumstances.The
return value
mechanism allows you to bubble up promises or return values to the entity which invoked the dispatch method.The text was updated successfully, but these errors were encountered: