Skip to content

Support for the third argument of useSyncExternalStore #4972

@ssssota

Description

@ssssota

Describe the feature you'd love to see
A clear and concise description of what you'd love to see added to Preact.

By supporting getServerSnapshot, we improve compatibility with React, enabling detection of hydration steps like:
https://github.com/TanStack/router/blob/425626822255604efc9a0598c58baeebba5fb592/packages/react-router/src/ClientOnly.tsx#L44-L72

Additional context (optional)
Add any other context or screenshots about the feature request here.

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