yearn/ape-tax

Use web-lib version of `useWindowInFocus` hook

Closed this issue ยท 1 comments

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.

Completed