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
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
addReducer('name',global=>({
...global,// reducers are now in the statenewKey: 'new value'}));
Best practice is to not spread operate the root, because there is no need to. This may not be intuitive to Redux users, so I'd like to support spread operating as a "backwards compatible" syntax, despite it being unnecessary.
I am pretty sold on the idea of having reducers available inside reducers.
Current fix is to silently ignore attempts to set state properties that share a name with reducers.
The text was updated successfully, but these errors were encountered:
Best practice is to not spread operate the root, because there is no need to. This may not be intuitive to Redux users, so I'd like to support spread operating as a "backwards compatible" syntax, despite it being unnecessary.
I am pretty sold on the idea of having reducers available inside reducers.
Current fix is to silently ignore attempts to set state properties that share a name with reducers.
The text was updated successfully, but these errors were encountered: