fix: min and max time is removed from the dependency list (#2522)

This commit is contained in:
Palash Gupta 2023-03-30 16:16:46 +05:30 committed by GitHub
parent c1d00c1155
commit 1a0c76a43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,9 @@ export function useSearchParser(): {
}); });
} }
}, },
[dispatch, maxTime, minTime, parsedQuery, selectedTime], // need to hide this warning as we don't want to update the query string on every change
// eslint-disable-next-line react-hooks/exhaustive-deps
[dispatch, parsedQuery, selectedTime],
); );
useEffect(() => { useEffect(() => {