Closed
Description
#2550 made a great start on getting enhancers typed properly!
Unfortunately, the inference still wasn't there when using the callback form, e.g.
const store = configureStore({ reducer: () => 0, enhancers: (defaultEnhancers) => [...defaultEnhancers, myEnhancer] });
The above wouldn't pick up any store extensions.
Additionally, the StoreEnhancer type has a StateExt
generic that's not used by RTK - presumably it would make sense for this type to be reflected in the final getState return.
Metadata
Metadata
Assignees
Labels
No labels