MCPcopy Create free account
hub / github.com/ctrlplusb/react-async-component / waitFor

Function waitFor

src/__tests__/integration.test.js:10–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import { AsyncComponentProvider, createAsyncContext, asyncComponent } from '../'
9
10const waitFor = time => new Promise(resolve => setTimeout(resolve, time))
11
12const createApp = (asyncContext, stateForClient) => {
13 // All the component creation needs to be within to respect the window

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…