Skip to content

Commit

Permalink
Fix/remove unneccesary dependency array (#1079)
Browse files Browse the repository at this point in the history
* refactor(use-watch-localstorage-value.ts): remove unneccesary dependency array

* refactor(use-watch-localstorage-value.ts): ignore eslint warning
  • Loading branch information
paghar authored Oct 26, 2023
1 parent b14dbdd commit 8ddebe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/use-watch-localstorage-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export const useWatchLocalStorageValue = ({
useEffect(() => {
window.addEventListener('storage', handleStorageChange);
return () => window.removeEventListener('storage', handleStorageChange);
}, []);
}, []); // eslint-disable-line
};

1 comment on commit 8ddebe1

@vercel
Copy link

@vercel vercel bot commented on 8ddebe1 Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.