Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Feb 9, 2024
1 parent 324554a commit e94f98b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.159",
"version": "3.0.160",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
2 changes: 2 additions & 0 deletions src/components/LogoPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export function LogoPopover(): ReactElement {
});
}, [currentHost]);

console.log(currentApp, currentHost);

return (
<>
<Popover
Expand Down
15 changes: 15 additions & 0 deletions src/hooks/useIsMounted.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {useCallback, useEffect, useRef} from 'react';

export function useIsMounted(): () => boolean {
const isMounted = useRef(false);

useEffect(() => {
isMounted.current = true;

return () => {
isMounted.current = false;
};
}, []);

return useCallback(() => isMounted.current, []);
}

0 comments on commit e94f98b

Please sign in to comment.