Commit Graph
6 Commits
Author SHA1 Message Date
Zack TannerandGitHub e1e25e16ae use server component transform for segment validation (#72051)
After adding validation that fixing invalid segment configs (when DIO is
enabled), it revealed that errors weren't being displayed in Turbopack,
because `setHMRServerError` wasn't implemented.

This refactors the implementation to use the existing server component
transform when validating if the segments are valid. This has the
benefit of highlighting precisely where the segment is coming, making it
easier to remove. The test that was skipped in Turbopack is also
re-enabled.

<details>
<summary>Screenshot</summary>

![CleanShot 2024-10-29 at 17 03
46@2x](https://github.com/user-attachments/assets/a68c060a-6ae7-4c6c-8243-6c48c2703f66)



</details>
2024-10-30 11:30:37 -07:00
Zack TannerandGitHub aeb40b7b47 ensure DIO development segment errors are cleared after correcting (#71811)
This clears segment config errors that are corrected in development mode
when using `dynamicIO`.
2024-10-24 10:51:09 -07:00
Jiachi LiuandGitHub 899c416ad4 test: re-enable test with note (#71789) 2024-10-24 13:53:24 +02:00
Josh StoryandGitHub 17f4291318 [dynamicIO] refine error message and docs (#71781)
refines the error message for non-prerenderable holes while prerendering
as well as the docs
2024-10-24 00:31:29 -07:00
ab1d9eebfa fix: handle server component replay error in error overlay (#71772)
### What

When there's a replay console error showed up, display it in error
overlay.

#### Server Component Page
<img width="480" alt="image"
src="https://github.com/user-attachments/assets/7af65809-1e0e-4aa0-bffb-bc95a376fb02">

#### Server Component Page with Client Components
<img width="480" alt="image"
src="https://github.com/user-attachments/assets/1f8bd507-3e0f-43f3-9240-07c4aec16ab4">

---------

Co-authored-by: Sebastian Markbage <[email protected]>
2024-10-24 00:53:58 -04:00
Zack TannerandGitHub 3a9a50c2f1 [dynamicIO]: dev navigations should show disallowed dynamic errors (#71595)
This applies similar handling from #71567 to show dynamic IO errors
during client navigations. This also adds a redbox test case for the
initial SSR render.
2024-10-21 23:37:25 -07:00