From 7801531a0a5bba3b906730a7c90c0fd006b320ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kuli=C5=84ski?= <25184202+rkulinski@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:49:37 +0100 Subject: [PATCH] Fix replacing workspace (#76) * Use pnpm to publish * Bypass no changes * Bring back fix * 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,