MCPcopy Create free account
hub / github.com/adobe/react-spectrum / reset

Function reset

perf/app/app.tsx:370–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368 ...measurement,
369 info: {production: process.env.NODE_ENV === 'production', react: React.version, fixture, size},
370 async reset() {
371 measurement.clear();
372 root.render(<App key={++revision} />);
373 await new Promise<void>(resolve =>
374 requestAnimationFrame(() => requestAnimationFrame(() => resolve()))
375 );
376 }
377};
378
379declare global {

Callers

nothing calls this directly

Calls 3

resolveFunction · 0.50
clearMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected