MCPcopy
hub / github.com/facebook/react / Foo

Function Foo

packages/react-devtools-shared/src/__tests__/TimelineProfiler-test.js:368–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 }
367
368 function Foo() {
369 Scheduler.log('Foo');
370 return <Bar />;
371 }
372
373 React.startTransition(() => {
374 modernRender(<Foo />);
375 });
376
377 await waitFor(['Foo']);
378
379 expect(registeredMarks).toMatchInlineSnapshot(`
380 [
381 "--schedule-render-128",
382 "--render-start-128",
383 "--component-render-start-Foo",
384 "--component-render-stop",
385 "--render-yield",
386 ]
387 `);
388 });
389
390 it('should mark concurrent render with suspense that resolves', async () => {
391 let resolveFakePromise;

Callers

nothing calls this directly

Calls 4

waitForFunction · 0.85
waitForAllFunction · 0.85
toMatchInlineSnapshotMethod · 0.80
toHaveLengthMethod · 0.80

Tested by

no test coverage detected