2 ms·
createSlice is an interesting approach, though it feels like it's missing the use case of being able to set multiple keys in the same reducer from one action, a
by crooked-v 8y ago
createSlice is an interesting approach, though it feels like it's missing the use case of being able to set multiple keys in the same reducer from one action, as with my valueAB example above. It might be worth putting some thought into how to make a variant of it that can produce multiple reducers (one per key to be affected), not just one.
- acemarke 8y agoYeah, we had one user file an issue with some suggested improvements: https://github.com/reduxjs/redux-starter-kit/issues/41 https://github.com/reduxjs/redux-starter-kit/issues/41 Haven't had time to dig into this further, though. Think you could leave a comment there with your suggestions and that example?