Skip to content

Commit

Permalink
[C-4033] Prevent useTabs from redirecting on page load (#8259)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype committed Apr 29, 2024
1 parent b17ff70 commit 5750045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web/src/hooks/useTabs/useTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ const GestureSupportingBodyContainer = memo(
const onRest = useCallback(() => {
if (getGestureInProgress()) return
const { from, to } = getTransitionInfo()
if (from === to) return
onChangeComplete(from, to)
setInternalIndex((i) => i + getIndexDelta())
setIndexDelta(0)
Expand Down

0 comments on commit 5750045

Please sign in to comment.