MCPcopy Index your code
hub / github.com/ctrlplusb/react-async-component / needToResolveOnBrowser

Function needToResolveOnBrowser

src/asyncComponent.js:44–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 const needToResolveOnBrowser = () =>
45 state.module == null &&
46 state.error == null &&
47 !state.resolving &&
48 typeof window !== 'undefined'
49
50 // Takes the given module and if it has a ".default" the ".default" will
51 // be returned. i.e. handy when you could be dealing with es6 imports.

Callers 1

componentDidMountMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…