We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03bea63 commit b593b64Copy full SHA for b593b64
packages/react-client/src/__tests__/ReactFlight-test.js
@@ -213,6 +213,22 @@ describe('ReactFlight', () => {
213
expect(ReactNoop).toMatchRenderedOutput(null);
214
});
215
216
+ it('can render an empty fragment', async () => {
217
+ function Empty() {
218
+ return <React.Fragment></React.Fragment>;
219
+ }
220
+
221
+ const model = <Empty />;
222
223
+ const transport = ReactNoopFlightServer.render(model);
224
225
+ await act(async () => {
226
+ ReactNoop.render(await ReactNoopFlightClient.read(transport));
227
+ });
228
229
+ expect(ReactNoop).toMatchRenderedOutput(null);
230
231
232
it('can render a lazy component as a shared component on the server', async () => {
233
function SharedComponent({text}) {
234
return (
0 commit comments