Exclude location.state from effect dependencies
This commit is contained in:
parent
88a01888bf
commit
851831f8a8
1 changed files with 3 additions and 2 deletions
|
@ -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 <></>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue