From 40578bae183990654c01a27b22ec76c319d6941c Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 23 Nov 2023 23:47:51 +0100 Subject: [PATCH] Reverse condition --- packages/react-ranger/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,