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 516edd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 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),
];
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 516edd9

Please sign in to comment.