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
I have a big slice with many reducers and wanted to split it up. Looking at the type signature for createSlice, we can create an object of typed reducers like this:
I suppose this wasn't an option back when this library was created - or maybe I'm missing something! Also, I understand this library does more than just this - but I wonder if RTK now has types for the other utilities here.
Anyways, in case anybody wants to split up their reducers, this is working fine for me without an extra dependencies.
The text was updated successfully, but these errors were encountered:
I have a big slice with many reducers and wanted to split it up. Looking at the type signature for
createSlice
, we can create an object of typed reducers like this:I suppose this wasn't an option back when this library was created - or maybe I'm missing something! Also, I understand this library does more than just this - but I wonder if RTK now has types for the other utilities here.
Anyways, in case anybody wants to split up their reducers, this is working fine for me without an extra dependencies.
The text was updated successfully, but these errors were encountered: