mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Disable exhaustive dependency warnings where required
This commit is contained in:
parent
6fc90c1740
commit
6c6b841f41
2 changed files with 8 additions and 6 deletions
|
@ -47,12 +47,13 @@ const ServerContentPage: FunctionComponent<ServerContentPageProps> = ({ view })
|
||||||
};
|
};
|
||||||
|
|
||||||
loadPage();
|
loadPage();
|
||||||
}, [
|
},
|
||||||
|
// location.state is NOT included as a dependency here since dialogs will update state while the current view stays the same
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
[
|
||||||
view,
|
view,
|
||||||
location.pathname,
|
location.pathname,
|
||||||
location.search
|
location.search
|
||||||
// location.state is NOT included as a dependency here since dialogs will update state while the current view
|
|
||||||
// stays the same
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return <></>;
|
return <></>;
|
||||||
|
|
|
@ -64,7 +64,10 @@ 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
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
[
|
||||||
controller,
|
controller,
|
||||||
view,
|
view,
|
||||||
type,
|
type,
|
||||||
|
@ -74,8 +77,6 @@ const ViewManagerPage: FunctionComponent<ViewManagerPageProps> = ({
|
||||||
transition,
|
transition,
|
||||||
location.pathname,
|
location.pathname,
|
||||||
location.search
|
location.search
|
||||||
// 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