Exclude location.state from effect dependencies

This commit is contained in:
Bill Thornton 2022-11-02 13:38:43 -04:00
parent 88a01888bf
commit 851831f8a8

View File

@ -70,8 +70,9 @@ const ViewManagerPage: FunctionComponent<ViewManagerPageProps> = ({
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 <></>;