MCPcopy Create free account
hub / github.com/plotly/dash / isConcurrentActEnvironment

Function isConcurrentActEnvironment

dash/deps/react-dom@18.3.1.js:25302–25314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25300 }
25301 }
25302 function isConcurrentActEnvironment() {
25303 {
25304 var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
25305 typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined;
25306
25307 if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) {
25308 // TODO: Include link to relevant documentation page.
25309 error('The current testing environment is not configured to support ' + 'act(...)');
25310 }
25311
25312 return isReactActEnvironmentGlobal;
25313 }
25314 }
25315
25316 var ceil = Math.ceil;
25317 var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…