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

Function getPrefetchedPromise

packages/dev/s2-docs/src/prefetch.ts:48–50  ·  view source on GitHub ↗
(rscPath: string)

Source from the content-addressed store, hash-verified

46}
47
48export function getPrefetchedPromise(rscPath: string): Promise<ReactElement> | undefined {
49 return prefetchPromises.get(rscPath);
50}
51
52function waitForIdle(fn) {
53 // Wait for view transition to finish before pre-fetching.

Callers 1

navigateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected