Skip to content

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

@devsajad

Description

@devsajad

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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions