Skip to content

useStoreMap is broken with React 18. #643

@mendrik

Description

@mendrik

What is the current behavior:
With react 17 everything is fine, with react 18 (which was just released) useStoreMap doesn't work.

const works = useStore($myStore)
const doesntWork = useStoreMap($myStore, x => x)

What is the expected behavior:
works and doesntWork should give the same result, since useStoreMap uses identity function as mapping.

Which versions of effector packages, and which browser and OS are affected by this issue? Did this work in previous versions of effector?:

effector: 22.2.0
effector-react: 22.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffector-reacteffector-react package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions