diff --git a/src/hooks/use-is-mounted.ts b/src/hooks/use-is-mounted.ts
new file mode 100644
index 000000000..ee266e9b2
--- /dev/null
+++ b/src/hooks/use-is-mounted.ts
@@ -0,0 +1,13 @@
+import { useEffect, useState } from 'react';
+
+export function useIsMounted() {
+ const [isMounted, setIsMounted] = useState(false);
+ useEffect(() => {
+ setIsMounted(true);
+
+ return () => {
+ setIsMounted(false);
+ };
+ }, []);
+ return isMounted;
+}