diff --git a/packages/react-ranger/src/index.tsx b/packages/react-ranger/src/index.tsx index 2f8ec6a..8eca363 100644 --- a/packages/react-ranger/src/index.tsx +++ b/packages/react-ranger/src/index.tsx @@ -4,7 +4,7 @@ import { RangerConfig, RangerOptions, Ranger } from '@tanstack/ranger' export * from '@tanstack/ranger' const useIsomorphicLayoutEffect = - typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect + typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect export function useRanger( options: RangerOptions,