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
NamedSet is a variation of SetState that accepts a third argument for passing in a string, for naming actions. This is used by the devtools middleware to have named logs.
Unfortunately having these two different types for SetState can cause all sorts of problems when chaining middlewares, where that third argument gets lost in the mix, etc.
What's the reason for not just using NamedSet by default? Why can't that optional argument always be there and we can get rid of an entire type? It doesn't always have to be consumed by other middlewares but it should always be passed on
The text was updated successfully, but these errors were encountered:
NamedSet
is a variation ofSetState
that accepts a third argument for passing in a string, for naming actions. This is used by the devtools middleware to have named logs.Unfortunately having these two different types for
SetState
can cause all sorts of problems when chaining middlewares, where that third argument gets lost in the mix, etc.What's the reason for not just using
NamedSet
by default? Why can't that optional argument always be there and we can get rid of an entire type? It doesn't always have to be consumed by other middlewares but it should always be passed onThe text was updated successfully, but these errors were encountered: