GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Consume the RSC stream twice in the Flight fixture by sebmarkbage · Pull Request #28353 · react/react Conversation
Contributor
We have an unresolved conflict where the Flight client wants to execute inside Fizz to emit side-effects like preloads (which can be early) into that stream. However, the FormState API requires the state to be passed at the root, so if you're getting that through the RSC payload it's a Catch 22. #27314 used a hack to mutate the form state array to fill it in later, but that doesn't actually work because it's not always an array. It's sometimes null like if there wasn't a POST. This lead to a bunch of hydration errors - which doesn't have the best error message for this case neither. It probably should error with something that specifies that it's form state. This fixes it by teeing the stream into two streams and consuming it with two Flight clients. One to read the form state and one to emit side-effects and read the root.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Comparing: a7144f2...600e999 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e3e718e to
600e999
Compare
### React upstream changes - react/react#28333 - react/react#28334 - react/react#28378 - react/react#28377 - react/react#28376 - react/react#28338 - react/react#28331 - react/react#28336 - react/react#28320 - react/react#28317 - react/react#28375 - react/react#28367 - react/react#28380 - react/react#28368 - react/react#28343 - react/react#28355 - react/react#28374 - react/react#28362 - react/react#28344 - react/react#28339 - react/react#28353 - react/react#28346 - react/react#25790 - react/react#28352 - react/react#28326 - react/react#27688 - react/react#28329 - react/react#28332 - react/react#28340 - react/react#28327 - react/react#28325 - react/react#28324 - react/react#28309 - react/react#28310 - react/react#28307 - react/react#28306 - react/react#28315 - react/react#28318 - react/react#28226 - react/react#28308 - react/react#27563 - react/react#28297 - react/react#28286 - react/react#28284 - react/react#28275 - react/react#28145 - react/react#28301 - react/react#28224 - react/react#28152 - react/react#28296 - react/react#28294 - react/react#28279 - react/react#28273 - react/react#28269 - react/react#28376 - react/react#28338 - react/react#28331 - react/react#28336 - react/react#28320 - react/react#28317 - react/react#28375 - react/react#28367 - react/react#28380 - react/react#28368 - react/react#28343 - react/react#28355 - react/react#28374 - react/react#28362 - react/react#28344 - react/react#28339 - react/react#28353 - react/react#28346 - react/react#25790 - react/react#28352 - react/react#28326 - react/react#27688 - react/react#28329 - react/react#28332 - react/react#28340 - react/react#28327 - react/react#28325 - react/react#28324 - react/react#28309 - react/react#28310 - react/react#28307 - react/react#28306 - react/react#28315 - react/react#28318 - react/react#28226 - react/react#28308 - react/react#27563 - react/react#28297 - react/react#28286 - react/react#28284 - react/react#28275 - react/react#28145 - react/react#28301 - react/react#28224 - react/react#28152 - react/react#28296 - react/react#28294 - react/react#28279 - react/react#28273 - react/react#28269 Closes NEXT-2542 Disable ppr test for strict mode for now, @acdlite will check it and we'll sync again
We have an unresolved conflict where the Flight client wants to execute inside Fizz to emit side-effects like preloads (which can be early) into that stream. However, the FormState API requires the state to be passed at the root, so if you're getting that through the RSC payload it's a Catch 22. react#27314 used a hack to mutate the form state array to fill it in later, but that doesn't actually work because it's not always an array. It's sometimes null like if there wasn't a POST. This lead to a bunch of hydration errors - which doesn't have the best error message for this case neither. It probably should error with something that specifies that it's form state. This fixes it by teeing the stream into two streams and consuming it with two Flight clients. One to read the form state and one to emit side-effects and read the root.
We have an unresolved conflict where the Flight client wants to execute inside Fizz to emit side-effects like preloads (which can be early) into that stream. However, the FormState API requires the state to be passed at the root, so if you're getting that through the RSC payload it's a Catch 22. #27314 used a hack to mutate the form state array to fill it in later, but that doesn't actually work because it's not always an array. It's sometimes null like if there wasn't a POST. This lead to a bunch of hydration errors - which doesn't have the best error message for this case neither. It probably should error with something that specifies that it's form state. This fixes it by teeing the stream into two streams and consuming it with two Flight clients. One to read the form state and one to emit side-effects and read the root. DiffTrain build for commit 6a44f35.
We have an unresolved conflict where the Flight client wants to execute inside Fizz to emit side-effects like preloads (which can be early) into that stream. However, the FormState API requires the state to be passed at the root, so if you're getting that through the RSC payload it's a Catch 22. react#27314 used a hack to mutate the form state array to fill it in later, but that doesn't actually work because it's not always an array. It's sometimes null like if there wasn't a POST. This lead to a bunch of hydration errors - which doesn't have the best error message for this case neither. It probably should error with something that specifies that it's form state. This fixes it by teeing the stream into two streams and consuming it with two Flight clients. One to read the form state and one to emit side-effects and read the root.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.