MCPcopy Create free account
hub / github.com/dozoisch/react-async-script / asyncScriptOnLoadSpy

Function asyncScriptOnLoadSpy

test/async-script-loader-spec.js:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 let scriptErrored = false;
44 let scriptLoaded = false;
45 const asyncScriptOnLoadSpy = entry => {
46 scriptLoaded = entry.loaded;
47 scriptErrored = entry.errored;
48 asyncScriptOnLoadCalled = true;
49 };
50 // eslint-disable-next-line no-unused-vars
51 const ComponentWrapper = makeAsyncScriptLoader(URL)(MockedComponent);
52 expect(ComponentWrapper.displayName).toEqual(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…