Skip to content

Commit

Permalink
Reverse condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rkulinski committed Nov 23, 2023
1 parent ab809f6 commit 40578ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-ranger/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<TTrackElement>(
options: RangerOptions<TTrackElement>,
Expand Down

0 comments on commit 40578ba

Please sign in to comment.