Skip to content

Incorrect redux-thunk import in the code (v3.1.0 update) #103

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

Open
devsajad opened this issue Mar 12, 2025 · 0 comments
Open

Incorrect redux-thunk import in the code (v3.1.0 update) #103

devsajad opened this issue Mar 12, 2025 · 0 comments

Comments

@devsajad
Copy link

Hi there! 👋

I noticed that in [15-redux-intro/final/src/store-v2.js], you're using the following import for redux-thunk:

import thunk from "redux-thunk";

As of redux-thunk v3.1.0, when using manual setup (without Redux Toolkit), the thunk middleware should be imported as a named import like this:

import { thunk } from "redux-thunk";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant