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, isThemeMediaSupported,
transition, transition,
location.pathname, location.pathname,
location.search, location.search
location.state // location.state is NOT included as a dependency here since dialogs will update state while the current view
// stays the same
]); ]);
return <></>; return <></>;