File tree Expand file tree Collapse file tree
packages/preact-query/src/__tests__/ErrorBoundary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class ErrorBoundary extends Component<
3030 this . state = initialState
3131 }
3232
33- static getDerivedStateFromError ( error : Error ) {
33+ static override getDerivedStateFromError ( error : Error ) {
3434 return { didCatch : true , error }
3535 }
3636
@@ -47,7 +47,7 @@ export class ErrorBoundary extends Component<
4747 }
4848 }
4949
50- componentDidCatch ( error : Error , info : ErrorInfo ) {
50+ override componentDidCatch ( error : Error , info : ErrorInfo ) {
5151 /**
5252 * To emulate the react behavior of console.error
5353 * we add one here to show that the errors bubble up
@@ -57,7 +57,7 @@ export class ErrorBoundary extends Component<
5757 this . props . onError ?.( error , info )
5858 }
5959
60- componentDidUpdate (
60+ override componentDidUpdate (
6161 prevProps : ErrorBoundaryProps ,
6262 prevState : ErrorBoundaryState ,
6363 ) {
You can’t perform that action at this time.
0 commit comments