From 851831f8a8484fecb8d4835506283fdccceafd82 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Wed, 2 Nov 2022 13:38:43 -0400 Subject: [PATCH] Exclude location.state from effect dependencies --- src/components/viewManager/ViewManagerPage.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/viewManager/ViewManagerPage.tsx b/src/components/viewManager/ViewManagerPage.tsx index aba382dacc..cf4f4cdd48 100644 --- a/src/components/viewManager/ViewManagerPage.tsx +++ b/src/components/viewManager/ViewManagerPage.tsx @@ -70,8 +70,9 @@ const ViewManagerPage: FunctionComponent = ({ isThemeMediaSupported, transition, location.pathname, - location.search, - location.state + location.search + // location.state is NOT included as a dependency here since dialogs will update state while the current view + // stays the same ]); return <>;