loadFixture() — react Function Reference
Architecture documentation for the loadFixture() function in index.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 06e93cf1_c7ae_98f2_9c9a_5480084c3dac["loadFixture()"] 8f0ba8c8_deae_17e1_f7bf_55872c3d51c2["FixturesPage"] 06e93cf1_c7ae_98f2_9c9a_5480084c3dac -->|defined in| 8f0ba8c8_deae_17e1_f7bf_55872c3d51c2 d0e8df74_c67e_4c01_7d42_47f8e8666f37["componentDidMount()"] d0e8df74_c67e_4c01_7d42_47f8e8666f37 -->|calls| 06e93cf1_c7ae_98f2_9c9a_5480084c3dac style 06e93cf1_c7ae_98f2_9c9a_5480084c3dac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fixtures/dom/src/components/fixtures/index.js lines 23–36
async loadFixture() {
const {fixturePath} = this.props;
try {
const module = await import(`.${fixturePath}`);
this.setState({Fixture: module.default});
} catch (error) {
console.error(error);
this.setState({error});
} finally {
this.setState({isLoading: false});
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does loadFixture() do?
loadFixture() is a function in the react codebase, defined in fixtures/dom/src/components/fixtures/index.js.
Where is loadFixture() defined?
loadFixture() is defined in fixtures/dom/src/components/fixtures/index.js at line 23.
What calls loadFixture()?
loadFixture() is called by 1 function(s): componentDidMount.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free