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
Most of the real life examples (and the official documentation) introduce an extra and unnecessary step of having to use applyMiddleware to create a function that is often named createStoreWithMiddleware (not to mention the awkward, variadic applyMiddleware syntax in the first place).
It would make sense to have a function createStoreWithMiddleware with API:
IMO this is not the responsibility of the library. The Redux API surface is small, tight, and focused, and keeping it that way affords the most flexibility.
Agree with @rossipedia. It is indeed an unnecessary abstraction that belongs in a utility of some sort, if such is needed at all. @gaearon example further illustrates the limitations that such an abstraction introduce.
Most of the real life examples (and the official documentation) introduce an extra and unnecessary step of having to use
applyMiddleware
to create a function that is often namedcreateStoreWithMiddleware
(not to mention the awkward, variadicapplyMiddleware
syntax in the first place).It would make sense to have a function
createStoreWithMiddleware
with API:that is equivalent to calling:
The text was updated successfully, but these errors were encountered: