@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
1 lines • 577 B
Source Map (JSON)
{"version":3,"file":"use-isomorphic-effect.cjs","names":["useLayoutEffect","useEffect"],"sources":["../../src/use-isomorphic-effect/use-isomorphic-effect.ts"],"sourcesContent":["import { useEffect, useLayoutEffect } from 'react';\n\n// UseLayoutEffect will show warning if used during ssr, for example with Next.js\n// UseIsomorphicEffect removes it by replacing useLayoutEffect with useEffect during ssr\nexport const useIsomorphicEffect = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n"],"mappings":";;;AAIA,MAAa,sBAAsB,OAAO,aAAa,cAAcA,MAAAA,kBAAkBC,MAAAA"}