From 3eeebf9bd224f00be4d4c9ea6d09ce6074b9701a Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 1 Aug 2024 13:35:27 -0400 Subject: [PATCH] Fix rerender on location state updates --- src/components/viewManager/ViewManagerPage.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/viewManager/ViewManagerPage.tsx b/src/components/viewManager/ViewManagerPage.tsx index ccdbfbddd1..08498ddb59 100644 --- a/src/components/viewManager/ViewManagerPage.tsx +++ b/src/components/viewManager/ViewManagerPage.tsx @@ -92,7 +92,7 @@ const ViewManagerPage: FunctionComponent = ({ loadPage(); }, - // location.state is NOT included as a dependency here since dialogs will update state while the current view stays the same + // location.state and navigationType are NOT included as dependencies here since dialogs will update state while the current view stays the same // eslint-disable-next-line react-hooks/exhaustive-deps [ controller, @@ -103,8 +103,7 @@ const ViewManagerPage: FunctionComponent = ({ isThemeMediaSupported, transition, location.pathname, - location.search, - navigationType + location.search ]); return null;