Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancer types are lost when using callback form, and state extensions not reflected #3206

Closed
EskiMojo14 opened this issue Feb 24, 2023 · 0 comments · Fixed by #3207
Closed

Comments

@EskiMojo14
Copy link
Collaborator

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant