Skip to content

Component does not re-render when changing a value #2071

Open
@dylanwulf

Description

@dylanwulf

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

  • React: 18.2.0
  • ReactDOM: 18.2.0
  • Redux Toolkit: 1.9.6
  • React Redux: 8.1.2

What is the current behavior?

I have a value in my redux store and a component subscribed to that value via useSelector. I have encountered a scenario where changing the value does not re-render my component: https://codesandbox.io/s/react-redux-not-re-rendering-on-value-change-rzf3n4?file=/src/App.js

What is the expected behavior?

Changing the value should re-render my component

Which browser and OS are affected by this issue?

No response

Did this work in previous versions of React Redux?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions