From 71ec6c4fb0af185f5b934c9018ed33adc0cb575e Mon Sep 17 00:00:00 2001 From: Mandeep Singh Date: Thu, 4 Jul 2024 17:48:02 +0530 Subject: [PATCH] Add eslint rule to ignore useEffect dep array --- components/SearchParams.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/SearchParams.tsx b/components/SearchParams.tsx index aa97585..9031074 100644 --- a/components/SearchParams.tsx +++ b/components/SearchParams.tsx @@ -35,6 +35,7 @@ export default function SearchParams({ setSuccess } : { setSuccess: (value: bool router.replace("/plans"); setSuccess(false); }, 5000); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); return null;