-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: warnings on React 19 #7654
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Oct 22, 2024 1:49 PM (UTC) ✅ All Tests Passed -- expand for details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @stipsan I've tested it locally and it looks good
⚡️ Editor Performance ReportUpdated Tue, 22 Oct 2024 13:54:04 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
* next: v3.62.0 fix: warnings on React 19 (#7654) fix(deps): update dependency @sanity/ui to ^2.8.10 (#7652) fix(deps): update dependency @sanity/ui to ^2.8.10 (#7653) chore(deps): update dependency @sanity/visual-editing to v2.2.2 (#7651) fix(core): inherit readOnly state from ancestors in copyPaste function (#7643) fix(deps): update dependency @sanity/mutate to ^0.10.1 (#7650) fix(deps): Update dev-non-major (#7649) fix(deps): update dependency @sanity/presentation to v1.17.3 (#7648) fix(deps): update dependency @portabletext/editor to ^1.1.5 (#7638) fix(deps): update dependency @sanity/presentation to v1.17.2 (#7647) fix(deps): Update dev-non-major (#7646) fix(deps): update dependency @sanity/presentation to v1.17.1 (#7645) chore(deps): update dependency @sanity/preview-url-secret to v2 (#7641) fix(deps): update dependency @sanity/presentation to v1.17.0 (#7640) fix(deps): Update dev-non-major (#7639) chore(cli): update help copy for deploy command (#7624) chore(test-studio): add asset types to structure navigation (#7631)
Description
On React 19, on Next 15 in
next dev
in particular, we got warnings that show up as errors, and that aren't actionable in userland as the problem is in our code.One half of it was fixed in
@sanity/ui
#7653The rest is in this PR.
The errors seen in userland are:
As well as this console warning:
Fixes #7655
What to review
These are minor changes but have a glance to see if we're avoiding any regressions.
Testing
You can test the before/after by running
pnpm dev:next-studio
onnext
, then on this branch.Opening http://localhost:3333/test/structure/author, and the help menu:
Should be enough to both trigger the dialog, and the
console.warn
instances.Notes for release
Fixed warnings on React 19:
tabIndex
was supplied toReact.Fragment
.