Use web-lib version of `useWindowInFocus` hook
Closed this issue ยท 1 comments
0xMirim commented
What is your proposal ๐
We have a local versions of useWindowInFocus
hook but there is also an equivalent hook in web-lib.
ours: https://github.com/saltyfacu/ape-tax/blob/master/hook/useWindowInFocus.tsx
web-lib's: https://github.com/yearn/web-lib/blob/main/packages/web-lib/hooks/useWindowInFocus.tsx
Seems like we can update local imports to use web-lib instead, then remove the local hook from the repo
What does this solve ? ๐
Trade off of reducing local code, but increasing dependence on web-lib. Should be fine to do this.
0xMirim commented
Completed