Skip to content

Commit 10caacd

Browse files
committed
[react] Error boundary fix for iOS
1 parent 149729c commit 10caacd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/store-inspector/ErrorBoundary.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export class ErrorBoundary extends PureComponent<Props, State> {
1717
this.state = {e: 0};
1818
}
1919

20-
static getDerivedStateFromError = () => ({e: 1});
20+
static getDerivedStateFromError() {
21+
return {e: 1};
22+
}
2123

2224
// eslint-disable-next-line react/no-arrow-function-lifecycle
2325
componentDidCatch = (error: Error, info: ErrorInfo) =>

0 commit comments

Comments
 (0)