neurosnap / robodux

caching in redux made simple
MIT License
101 stars 7 forks source link

:sparkles: make immer optional #15

Closed neurosnap closed 5 years ago

neurosnap commented 5 years ago

This allows immer to be optional in reducers. For simple reducers, it is pointless to use immer since they are simple sets, add, etc. Furthermore, mapSlice doesn't need immer and could create unnecessary overhead.