From 7276b365bb00b2ebc96f405ac874d62f93cf7e6c Mon Sep 17 00:00:00 2001 From: snaerseljan Date: Mon, 23 Dec 2024 10:19:57 +0000 Subject: [PATCH] Reload the current page --- libs/react-spa/bff/src/lib/BffProvider.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libs/react-spa/bff/src/lib/BffProvider.tsx b/libs/react-spa/bff/src/lib/BffProvider.tsx index 13c7dfb4f3b7..902ae0ab5d79 100644 --- a/libs/react-spa/bff/src/lib/BffProvider.tsx +++ b/libs/react-spa/bff/src/lib/BffProvider.tsx @@ -235,14 +235,10 @@ export const BffProvider = ({ setSessionExpiredScreen(true) }, []) - const onRetry = useCallback(() => { - window.location.href = applicationBasePath - }, [applicationBasePath]) - - const onKeepCurrentUser = useCallback(() => { + const onRetry = () => { BffError.removeBffErrorParamsFromURL() - onRetry() - }, [onRetry]) + window.location.reload() + } const renderContent = () => { if (mockedInitialState) { @@ -260,7 +256,7 @@ export const BffProvider = ({ return ( ) }