Skip to content

Commit

Permalink
Fix keys in fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed May 21, 2024
1 parent 35aa080 commit 4a5b219
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fixtures/flight/server/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,20 @@ async function renderApp(res, returnValue, formState) {
).main.css;
}
const App = m.default.default || m.default;
const root = [
const root = React.createElement(
React.Fragment,
null,
// Prepend the App's tree with stylesheets required for this entrypoint.
mainCSSChunks.map(filename =>
React.createElement('link', {
rel: 'stylesheet',
href: filename,
precedence: 'default',
key: filename,
})
),
React.createElement(App),
];
);
// For client-invoked server actions we refresh the tree and return a return value.
const payload = {root, returnValue, formState};
const {pipe} = renderToPipeableStream(payload, moduleMap);
Expand Down

0 comments on commit 4a5b219

Please sign in to comment.