From 4fd73c7df84375c954ee4cca90a29afaff7e954f Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj <7842232+AbdullahAlfaraj@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:39:07 +0300 Subject: [PATCH] temperately disable refreshUI when ui crash --- typescripts/util/errorBoundary.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescripts/util/errorBoundary.tsx b/typescripts/util/errorBoundary.tsx index 522227d..afaa887 100644 --- a/typescripts/util/errorBoundary.tsx +++ b/typescripts/util/errorBoundary.tsx @@ -29,12 +29,12 @@ export class ErrorBoundary extends Component { 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() {