temperately disable refreshUI when ui crash

pull/369/head
Abdullah Alfaraj 2023-11-13 14:39:07 +03:00
parent 0b72bc7391
commit 4fd73c7df8
1 changed files with 2 additions and 2 deletions

View File

@ -29,12 +29,12 @@ export class ErrorBoundary extends Component<Props, State> {
console.error('Uncaught error:', error, errorInfo)
}
handleRefresh = async () => {
handleRefresh = () => {
this.setState((prevState) => ({
hasError: false, // reset the error state
key: prevState.key + 1, // increment key to remount children
}))
await refreshUI()
// await refreshUI()
}
public render() {