isConcurrentActEnvironment() — react Function Reference
Architecture documentation for the isConcurrentActEnvironment() function in ReactFiberAct.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 5a837e77_5208_2e63_cfa9_ed27c6fa5b1e["isConcurrentActEnvironment()"] f6d3a9ed_72f5_c7df_64e0_1c680d088e57["ReactFiberAct.js"] 5a837e77_5208_2e63_cfa9_ed27c6fa5b1e -->|defined in| f6d3a9ed_72f5_c7df_64e0_1c680d088e57 style 5a837e77_5208_2e63_cfa9_ed27c6fa5b1e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberAct.js lines 39–61
export function isConcurrentActEnvironment(): void | boolean {
if (__DEV__) {
const isReactActEnvironmentGlobal =
// $FlowFixMe[cannot-resolve-name] Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined'
? // $FlowFixMe[cannot-resolve-name]
IS_REACT_ACT_ENVIRONMENT
: undefined;
if (
!isReactActEnvironmentGlobal &&
ReactSharedInternals.actQueue !== null
) {
// TODO: Include link to relevant documentation page.
console.error(
'The current testing environment is not configured to support ' +
'act(...)',
);
}
return isReactActEnvironmentGlobal;
}
return false;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isConcurrentActEnvironment() do?
isConcurrentActEnvironment() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberAct.js.
Where is isConcurrentActEnvironment() defined?
isConcurrentActEnvironment() is defined in packages/react-reconciler/src/ReactFiberAct.js at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free