Skip to content

Commit

Permalink
Add eslint rule to ignore useEffect dep array
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsingh132 committed Jul 4, 2024
1 parent f5e18ad commit 71ec6c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/SearchParams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 71ec6c4

Please sign in to comment.