Skip to content

Commit 28c8b7d

Browse files
committed
Fix keys in fixture
1 parent d3f6359 commit 28c8b7d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

fixtures/flight/server/region.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,20 @@ async function renderApp(res, returnValue, formState) {
8181
).main.css;
8282
}
8383
const App = m.default.default || m.default;
84-
const root = [
84+
const root = React.createElement(
85+
React.Fragment,
86+
null,
8587
// Prepend the App's tree with stylesheets required for this entrypoint.
8688
mainCSSChunks.map(filename =>
8789
React.createElement('link', {
8890
rel: 'stylesheet',
8991
href: filename,
9092
precedence: 'default',
93+
key: filename,
9194
})
9295
),
93-
React.createElement(App),
94-
];
96+
React.createElement(App)
97+
);
9598
// For client-invoked server actions we refresh the tree and return a return value.
9699
const payload = {root, returnValue, formState};
97100
const {pipe} = renderToPipeableStream(payload, moduleMap);

0 commit comments

Comments
 (0)