add stuff that was mysteriously missing from error-boundary
This commit is contained in:
parent
8a64798e32
commit
0b18a3e1c5
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class ErrorBoundary extends React.Component {
|
|||
|
||||
static getDerivedStateFromError(error) {
|
||||
// Update state so the next render will show the fallback UI.
|
||||
return { hasError: true };
|
||||
return { hasError: true, error };
|
||||
}
|
||||
|
||||
componentDidCatch(error, errorInfo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue