temperately disable refreshUI when ui crash
parent
0b72bc7391
commit
4fd73c7df8
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue