react/fixtures
Sebastian Markbåge 67a61d5bd7
[Flight Fixture] Show SSR Support with CSS (#26263)
Builds on #26257.

To do this we need access to a manifest for which scripts and CSS are
used for each "page" (entrypoint).

The initial script to bootstrap the app is inserted with
`bootstrapScripts`. Subsequent content are loaded using the chunks
mechanism built-in.

The stylesheets for each pages are prepended to each RSC payload and
rendered using Float. This doesn't yet support styles imported in
components that are also SSR:ed nor imported through Server Components.
That's more complex and not implemented in the node loader.

HMR doesn't work after reloads right now because the SSR renderer isn't
hot reloaded because there's no idiomatic way to hot reload ESM modules
in Node.js yet. Without killing the HMR server. This leads to hydration
mismatches when reloading the page after a hot reload.

Notably this doesn't show serializing the stream through the HTML like
real implementations do. This will lead to possible hydration mismatches
based on the data. However, manually serializing the stream as a string
isn't exactly correct due to binary data. It's not the idiomatic way
this is supposed to work. This will all be built-in which will make this
automatic in the future.
2023-02-28 19:44:37 -05:00
..
art Copy from build to node_modules instead of linking to builds (#26210) 2023-02-21 14:48:37 -05:00
attribute-behavior Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
concurrent/time-slicing Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
devtools Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
dom Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
eslint Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
expiration Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
fiber-debugger Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
fiber-triangle Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
fizz Copy from build to node_modules instead of linking to builds (#26210) 2023-02-21 14:48:37 -05:00
fizz-ssr-browser Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
flight [Flight Fixture] Show SSR Support with CSS (#26263) 2023-02-28 19:44:37 -05:00
flight-browser Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
legacy-jsx-runtimes Update to Jest 29 (#26088) 2023-02-09 17:07:49 +01:00
nesting Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
packaging Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
scheduler Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00
ssr Copy from build to node_modules instead of linking to builds (#26210) 2023-02-21 14:48:37 -05:00
ssr2 Copy from build to node_modules instead of linking to builds (#26210) 2023-02-21 14:48:37 -05:00
stacks Rename yarn build-combined to just yarn build (#26192) 2023-02-17 16:00:18 -05:00