mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix rerender on location state updates
This commit is contained in:
parent
4de2a05264
commit
3eeebf9bd2
1 changed files with 2 additions and 3 deletions
|
@ -92,7 +92,7 @@ const ViewManagerPage: FunctionComponent<ViewManagerPageProps> = ({
|
||||||
|
|
||||||
loadPage();
|
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
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[
|
[
|
||||||
controller,
|
controller,
|
||||||
|
@ -103,8 +103,7 @@ const ViewManagerPage: FunctionComponent<ViewManagerPageProps> = ({
|
||||||
isThemeMediaSupported,
|
isThemeMediaSupported,
|
||||||
transition,
|
transition,
|
||||||
location.pathname,
|
location.pathname,
|
||||||
location.search,
|
location.search
|
||||||
navigationType
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue