mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
Add files
This commit is contained in:
commit
e87c814068
266 changed files with 63938 additions and 0 deletions
11
src/renderer/hooks/use-is-mounted.ts
Normal file
11
src/renderer/hooks/use-is-mounted.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
|
||||
export const useIsMounted = () => {
|
||||
const [isMounted, setIsMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setIsMounted(true);
|
||||
}, []);
|
||||
|
||||
return isMounted;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue