Skip to content

Evaluate move to useSyncExternalStore #148

@albertogasparin

Description

@albertogasparin

With React 18 there is a new useSyncExternalStore hook (and a shim for >= 16.8) to properly subscribe to values in stores.

reactwg/react-18#86

Other projects like react-redux are moving to it (PR reduxjs/react-redux#1808 ) so might provide some benefits / need for custom subscription/memoization/scheduling.

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