-
Notifications
You must be signed in to change notification settings - Fork 2
React 19 #1048
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
Conversation
🦋 Changeset detectedLatest commit: 2f31530 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for obos-grunnmuren ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3d39069
to
df1e36a
Compare
df1e36a
to
61c90f8
Compare
d870f57
to
e39b36a
Compare
.changeset/poor-avocados-march.md
Outdated
'@obosbbl/grunnmuren-react': minor | ||
--- | ||
|
||
Upgrade peerDeps with React 19 |
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.
Borde vi ha fått en del av det du beskriver i PR-en här i changeset kanske?
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.
Tror kanskje vi burde holde det utenfor Grunnmurens release notater og heller informere om det på Slack. Det er egentlig utenfor Grunnmuren.
.changeset/poor-avocados-march.md
Outdated
'@obosbbl/grunnmuren-react': minor | ||
--- | ||
|
||
Upgrade peerDeps with React 19 |
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.
Tror kanskje vi burde holde det utenfor Grunnmurens release notater og heller informere om det på Slack. Det er egentlig utenfor Grunnmuren.
Såå, här har vi lite av en utfodring!
React 19 ändrade forms till att auto-resetta. Se diskussionen här facebook/react#29034
Kontentan är att våra forms genom next knäcker. Vi märker det direkt genom form-demo, men ute hos apparna så kommer formsen också knäcka. Next verkar ha implementerat forms på en måte som inte spelar på lag med måten React 19 nu fungerar på facebook/react#29034 (comment), och det verkar vara upp till next att fixa det..
Effekten? Actions blir mer eller mindre meningslösa att passa till Forms. Vid feil så resettas alla fält. Workarounden blir att bruke onSubmit istället, med preventDefault för att inte mista fältverdier. Downsiden blir att fälten står kvar vid success. Det verkade finnas en workaround i den tråden ovan, med defaultValues, men jag får den inte att fungera.