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

Function getPrefetchedPromise

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

Source from the content-addressed store, hash-verified

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

Callers 1

navigateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected