Skip to content

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

Merged
merged 7 commits into from
Dec 16, 2024
Merged

React 19 #1048

merged 7 commits into from
Dec 16, 2024

Conversation

gabrielwallin
Copy link
Contributor

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.

Copy link

changeset-bot bot commented Dec 13, 2024

🦋 Changeset detected

Latest commit: 2f31530

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@obosbbl/grunnmuren-icons-react Minor
@obosbbl/grunnmuren-react Minor

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

Copy link

netlify bot commented Dec 13, 2024

Deploy Preview for obos-grunnmuren ready!

Name Link
🔨 Latest commit 2f31530
🔍 Latest deploy log https://app.netlify.com/sites/obos-grunnmuren/deploys/675ff3abc98c6400083e7cef
😎 Deploy Preview https://deploy-preview-1048--obos-grunnmuren.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

'@obosbbl/grunnmuren-react': minor
---

Upgrade peerDeps with React 19
Copy link
Contributor

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?

Copy link
Contributor

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.

'@obosbbl/grunnmuren-react': minor
---

Upgrade peerDeps with React 19
Copy link
Contributor

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.

@alexanbj alexanbj merged commit 9653882 into main Dec 16, 2024
5 checks passed
@alexanbj alexanbj deleted the react-19 branch December 16, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants