InspectedElementErrorBoundaryWrapper() — react Function Reference
Architecture documentation for the InspectedElementErrorBoundaryWrapper() function in InspectedElementErrorBoundary.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD c411ed50_3854_bfe5_98dc_774e894e0e90["InspectedElementErrorBoundaryWrapper()"] 8d1aac2b_7bad_9e53_cab3_6414b0d9e4c5["InspectedElementErrorBoundary.js"] c411ed50_3854_bfe5_98dc_774e894e0e90 -->|defined in| 8d1aac2b_7bad_9e53_cab3_6414b0d9e4c5 style c411ed50_3854_bfe5_98dc_774e894e0e90 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorBoundary.js lines 25–47
export default function InspectedElementErrorBoundaryWrapper({
children,
}: WrapperProps): React.Node {
// Key on the selected element ID so that changing the selected element automatically hides the boundary.
// This seems best since an error inspecting one element isn't likely to be relevant to another element.
const {inspectedElementID} = useContext(TreeStateContext);
const refresh = useCacheRefresh();
const handleDsmiss = useCallback(() => {
clearCacheBecauseOfError(refresh);
}, [refresh]);
return (
<div className={styles.Wrapper}>
<ErrorBoundary
key={inspectedElementID}
canDismiss={true}
onBeforeDismissCallback={handleDsmiss}>
{children}
</ErrorBoundary>
</div>
);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does InspectedElementErrorBoundaryWrapper() do?
InspectedElementErrorBoundaryWrapper() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorBoundary.js.
Where is InspectedElementErrorBoundaryWrapper() defined?
InspectedElementErrorBoundaryWrapper() is defined in packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorBoundary.js at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free