Skip to content

Commit

Permalink
Fix replacing workspace (#76)
Browse files Browse the repository at this point in the history
* Use pnpm to publish

* Bypass no changes

* Bring back fix

* Reverse condition
  • Loading branch information
rkulinski authored Nov 23, 2023
1 parent 03c8eff commit 7801531
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 7801531

Please sign in to comment.