From 67ec2452c9719418fd4c51db59b0a442e738797a Mon Sep 17 00:00:00 2001 From: Kesava Krishnan Madavan Date: Fri, 4 Jul 2025 10:44:50 +0530 Subject: [PATCH 1/2] fix(cc-samples): refresh page onCCSignout --- widgets-samples/cc/samples-cc-react-app/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets-samples/cc/samples-cc-react-app/src/App.tsx b/widgets-samples/cc/samples-cc-react-app/src/App.tsx index a9018925d..9236c0a2c 100644 --- a/widgets-samples/cc/samples-cc-react-app/src/App.tsx +++ b/widgets-samples/cc/samples-cc-react-app/src/App.tsx @@ -129,6 +129,7 @@ const handleSaveEnd = (isComplete: boolean) => { const onCCSignOut = () => { console.log('CC Sign out has been successful'); + window.location.href = window.location.href; }; const onAccepted = ({task}) => { @@ -825,4 +826,4 @@ const onTaskDeclined = (task,reason) => { ); } -export default observer(App); \ No newline at end of file +export default observer(App); From bb0332595547795c12f60ceb472b1e756934bc01 Mon Sep 17 00:00:00 2001 From: Kesava Krishnan Madavan Date: Fri, 4 Jul 2025 13:47:26 +0530 Subject: [PATCH 2/2] fix(cc-samples): use location reload --- widgets-samples/cc/samples-cc-react-app/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets-samples/cc/samples-cc-react-app/src/App.tsx b/widgets-samples/cc/samples-cc-react-app/src/App.tsx index 9236c0a2c..c9044e744 100644 --- a/widgets-samples/cc/samples-cc-react-app/src/App.tsx +++ b/widgets-samples/cc/samples-cc-react-app/src/App.tsx @@ -129,7 +129,7 @@ const handleSaveEnd = (isComplete: boolean) => { const onCCSignOut = () => { console.log('CC Sign out has been successful'); - window.location.href = window.location.href; + window.location.reload(); }; const onAccepted = ({task}) => {