1
0
Fork 0
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:
Bill Thornton 2024-08-01 13:35:27 -04:00 committed by GitHub
parent 4de2a05264
commit 3eeebf9bd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ const ViewManagerPage: FunctionComponent<ViewManagerPageProps> = ({
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<ViewManagerPageProps> = ({
isThemeMediaSupported,
transition,
location.pathname,
location.search,
navigationType
location.search
]);
return null;