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
Note the intermediate Eff. This is important for doing staged initialization of middlewares. That is, the middleware relies on having the MiddlewareAPI before it can be initialized. In JS, the effects are pervasive so this would just be implicit and expected, and is how Redux internally initializes them. Otherwise in JS, there'd be no use for currying it.
I like your proposal. Makes sense. If you are interested in opening up a PR for this change, it would definitely be welcome. I can also make the update if you prefer. Thanks!
I'd like to request changing the type of
Middleware
from:To something like
Note the intermediate
Eff
. This is important for doing staged initialization of middlewares. That is, the middleware relies on having theMiddlewareAPI
before it can be initialized. In JS, the effects are pervasive so this would just be implicit and expected, and is how Redux internally initializes them. Otherwise in JS, there'd be no use for currying it.I think technically it should be something like:
But I haven't come across a use for the second Eff wrapping.
The text was updated successfully, but these errors were encountered: