mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 20:39:18 +00:00
remove storedViewParams from the dep array (#606)
This commit is contained in:
@@ -59,10 +59,10 @@ export default function ViewParamsEditor({ paramFields }: EditFormDrawerProps) {
|
|||||||
setSearchParams(defaultSearchParams);
|
setSearchParams(defaultSearchParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
// linter is asking for `setSearchParams` in the useEffect deps
|
// linter is asking for `setSearchParams` & `storedViewParams` in the useEffect deps
|
||||||
// rule is disabled since adding `setSearchParams` results in unnecessary re-renders
|
// rule is disabled since adding `setSearchParams` & `storedViewParams` results in unnecessary re-renders
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [storedViewParams, pathname]);
|
}, [pathname]);
|
||||||
|
|
||||||
const onEditDrawerClose = () => {
|
const onEditDrawerClose = () => {
|
||||||
onClose();
|
onClose();
|
||||||
|
|||||||
Reference in New Issue
Block a user