Error Boundaries¶
Render a fallback when there's an error
- can take in a
FallbackComponent
arg - Problem with using the
key
prop for the error boundary- it'll mount and unmount every time the
key
is updated - flashing
- it'll mount and unmount every time the
- we can pass
resetErrorBoundary
prop that gets triggered in theFallbackComponent
resetKeys
prop works as well
Last update:
2023-04-24