Skip to content

Conversation

@sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Apr 15, 2025

Since hidden is a prop on arbitrary DOM elements it's a common mistake to think that it would also work that way on <Activity> but it doesn't. In fact, we even had this mistakes in our own tests.

Maybe there's an argument that we should actually just support it but we also have more modes planned.

So this adds a warning. It should also already be covered by TypeScript.

@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Apr 15, 2025
@sebmarkbage sebmarkbage merged commit 539bbdb into facebook:main Apr 15, 2025
464 of 468 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 15, 2025
Since `hidden` is a prop on arbitrary DOM elements it's a common mistake
to think that it would also work that way on `<Activity>` but it
doesn't. In fact, we even had this mistakes in our own tests.

Maybe there's an argument that we should actually just support it but we
also have more modes planned.

So this adds a warning. It should also already be covered by TypeScript.

DiffTrain build for [539bbdb](539bbdb)
github-actions bot pushed a commit that referenced this pull request Apr 15, 2025
Since `hidden` is a prop on arbitrary DOM elements it's a common mistake
to think that it would also work that way on `<Activity>` but it
doesn't. In fact, we even had this mistakes in our own tests.

Maybe there's an argument that we should actually just support it but we
also have more modes planned.

So this adds a warning. It should also already be covered by TypeScript.

DiffTrain build for [539bbdb](539bbdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants