Skip to content

Talk: useSyncExternalStore vs useEffect #54

@move-zig

Description

@move-zig

Demonstrating a use case for using useSyncExternalStore instead of useEffect/useState for subscribing to DOM events


I created a wrapper around useSyncExternalStore to provide a convenient API for listening to web events. I can give a presentation on how a typical setup with useEffect and useState can cause tearing, and a way to solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions