Skip to content

React 19 compatibility: Add support for use(promise) to preact/compat #4756

Description

@effulgentsia

Describe the feature you'd love to see
React 19 added a use() function that can be called from components to do async data fetching and suspend the component until the promise resolves. It would be great to have this in preact/compat.

This was asked about in #4613 (comment), but I think it warrants its own issue, so here it is.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions