Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Apr 26, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

gnoff added 2 commits April 26, 2025 07:51
…78574)

Metadata can be dynamic without that being an error. A bug was
introduced in a recent refactor where the presence of dynamic metadata
was incorrectly interpreted as a sign that the metadata did not have a
Suspense boundary around it. This would be a problem because metadata is
now streaming however it was actually a misuse of the tracking flag and
would incorrectly error if you had dynamic metadata at all. This fix
addresses the incorrect invariant by removing it.

there is arguably a second bug here in that InvariantError causes the
validation of the page to be skipped but it doesn't error the build.
That is concerning but not the focus of this change. regardless by
removing the incorrect invariant error code the validation begins to
work again as expected.
In dev when dynamicIO is enabled we perform a validating prerender to
look for code that would be a build error in `next build`. However due
to the construction of the earlier implementation of this code some
validation messages were being suppressed because they were conveyed as
a thrown error rather than through console.error. This change updates
the mechanism by which we raise these issues in dev so they are
consistently messaged.

stacked on #78574
@pull pull bot added the ⤵️ pull label Apr 26, 2025
@pull pull bot merged commit 784a9c8 into Mement-Mori:canary Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant