Skip to content

Conversation

ceIia
Copy link
Contributor

@ceIia ceIia commented Jun 3, 2024

Description

in a pull request introduced last january in next.js (dynamic-rendering.ts:153), the message passed in React.unstable_postpone thrown for PPR bailout was changed, meaning the check implemented by #2518 was not enough anymore, and the bailout was not being rethrown anymore, breaking next.js builds using ppr, and probably other issues.

i've updated it to match the latest version, but kept the old check for the sake of not causing a breaking change.

to test:

  • run a next.js build on an app that uses ppr with the latest version of @clerk/nextjs (should fail)
  • run another build with this pr (shouldn't fail anymore)

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

changeset-bot bot commented Jun 3, 2024

🦋 Changeset detected

Latest commit: b8dfcfa

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

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs Patch

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

@ceIia ceIia marked this pull request as ready for review June 3, 2024 10:16
@dimkl
Copy link
Contributor

dimkl commented Jun 3, 2024

Nice work @ceIia 🎉 and thank you for the contribution!

@dimkl dimkl force-pushed the fix/react-ppr-bailout branch from bda8e2a to 79cd87a Compare June 3, 2024 11:01
@ceIia
Copy link
Contributor Author

ceIia commented Jun 4, 2024

is there something i can do to fix the failing check @dimkl? i'm not 100% sure of why it broke

@dimkl dimkl force-pushed the fix/react-ppr-bailout branch from 79cd87a to 69998a6 Compare June 4, 2024 09:42
@panteliselef panteliselef reopened this Jun 4, 2024
@dimkl
Copy link
Contributor

dimkl commented Jun 5, 2024

@ceIia we are facing an issue with the integration tests failing for a PR from a forked repo because the GH secrets are not shared. I will let you know about the progress in the next couple of hours.

@dimkl dimkl force-pushed the fix/react-ppr-bailout branch from 69998a6 to 4d3a5c1 Compare June 5, 2024 08:01
Copy link
Member

@nikosdouvlis nikosdouvlis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes total sense to me. Thank you @ceIia

@nikosdouvlis nikosdouvlis merged commit adb4c53 into clerk:main Jun 5, 2024
@ceIia ceIia deleted the fix/react-ppr-bailout branch June 5, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants