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
Slice helpers abstract the need to recreate repetitive reducers/actions, etc. I have found myself creating a lot of the same type of reducers and by creating a thin wrapper around createSlice I'm reducing a ton of boilerplate code.
The primary slices I create often are map and simple assign. I've been using these slices in production for awhile now with great success.
Uh oh!
There was an error while loading. Please reload this page.
Slice helpers abstract the need to recreate repetitive reducers/actions, etc. I have found myself creating a lot of the same type of reducers and by creating a thin wrapper around
createSlice
I'm reducing a ton of boilerplate code.The primary slices I create often are
map
and simpleassign
. I've been using these slices in production for awhile now with great success.Here are some examples:
https://github.com/neurosnap/robodux#slice-helpers
Map slice:
What does everyone think?
I'd be happy to submit a PR to add this feature to RSK.
The text was updated successfully, but these errors were encountered: