Skip to content

useAtomSelector doesn't work with useAtomContext instances #83

@Aleksion

Description

@Aleksion

Zedux Version

"@zedux/react": "1.1.1",

Description

useAtomSelector doesn't trigger a re-render when used with useAtomContext.
But, any other re-render in the component will cause the selector to register and work as intended.

Try making a change in the code in the code sandbox, and you'll see it start to synchronize.

Reproduction

https://codesandbox.io/s/epic-snow-pxyvym?file=/src/App.js:0-1823

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