mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-21 18:02:45 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
4
apps/web-react/app/hooks/useIsomorphicLayoutEffect.ts
Normal file
4
apps/web-react/app/hooks/useIsomorphicLayoutEffect.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { useEffect, useLayoutEffect } from "react";
|
||||
|
||||
export const useIsomorphicLayoutEffect =
|
||||
typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
||||
Reference in New Issue
Block a user