MCPcopy
hub / github.com/gregberge/loadable-components / lazy

Function lazy

packages/component/src/createLoadable.js:360–362  ·  view source on GitHub ↗
(ctor, options)

Source from the content-addressed store, hash-verified

358 }
359
360 function lazy(ctor, options) {
361 return loadable(ctor, { ...options, suspense: true })
362 }
363
364 return { loadable, lazy }
365}

Callers 2

index.jsFile · 0.90
loadable.test.jsFile · 0.85

Calls 1

loadableFunction · 0.85

Tested by

no test coverage detected