Skip to content

after state change happens, why is the rerendering not happening. #1

@aayushave

Description

@aayushave

Hi,
redux state is set still the page doesn't reflects changes.
and once again if i do some edit in vscode the changes are visible.

I m using reduc with nextjs

createStore code for nextjs with redux toolkit, I feel the issue is happening at this point
`
import { createStore } from "redux";
import reducers from "./reducers/index"

const store = createStore(reducers,typeof window !== "undefined"
? window.REDUX_DEVTOOLS_EXTENSION &&
window.REDUX_DEVTOOLS_EXTENSION()
: "");
`

export default store;

image
image

it looks like above at first even after SET_PRODUCTS is set.

after i do some edit in vscode like enter a new line it works, and in redux devtool it SET_PRODUCTS again

image
image
``

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