preactjs / preactjs/preact

Add compatibility with React 19 <Activity />

Open
#4,977 2 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
38.9k
Forks
2.4k
Avg merge
20h 18m
Merged PRs (30d)
35

Description

Describe the feature you'd love to see
React 19 introduces the new component which allows parts of the tree to be paused or hidden without unmounting, so component state, refs, and DOM can be retained across visibility or activity changes
(see docs: https://react.dev/reference/react/Activity)

This feature would be very helpful for managing certain states more conveniently. I would be grateful if this could be considered!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or entry points. Read the linked React Activity documentation first, then locate Preact's existing React-compatibility component entry point and define tests for retaining state, refs, and DOM across activity changes; done means behaves as documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.