Skip to content

Commit 388c8e0

Browse files
committed
remove history push from interview navigation
1 parent 22f0979 commit 388c8e0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/interviewer/containers/ProtocolScreen.tsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
'use client';
22

3+
import type { AnyAction } from '@reduxjs/toolkit';
34
import {
4-
type ValueAnimationTransition,
55
motion,
66
useAnimate,
7+
type ValueAnimationTransition,
78
} from 'framer-motion';
8-
import { useSelector, useDispatch } from 'react-redux';
9+
import { parseAsInteger, useQueryState } from 'nuqs';
10+
import { useCallback, useEffect, useRef, useState } from 'react';
11+
import { useDispatch, useSelector } from 'react-redux';
12+
import usePrevious from '~/hooks/usePrevious';
913
import Navigation from '../components/Navigation';
14+
import { actionCreators as sessionActions } from '../ducks/modules/session';
15+
import useReadyForNextStage from '../hooks/useReadyForNextStage';
1016
import {
1117
getCurrentStage,
18+
getNavigationInfo,
1219
makeGetFakeSessionProgress,
1320
} from '../selectors/session';
14-
import Stage from './Stage';
15-
import { useCallback, useEffect, useRef, useState } from 'react';
16-
import { getNavigationInfo } from '../selectors/session';
1721
import { getNavigableStages } from '../selectors/skip-logic';
18-
import { actionCreators as sessionActions } from '../ducks/modules/session';
19-
import useReadyForNextStage from '../hooks/useReadyForNextStage';
20-
import type { AnyAction } from '@reduxjs/toolkit';
21-
import usePrevious from '~/hooks/usePrevious';
22-
import { parseAsInteger, useQueryState } from 'nuqs';
22+
import Stage from './Stage';
2323

2424
type directions = 'forwards' | 'backwards';
2525

@@ -203,7 +203,7 @@ export default function ProtocolScreen() {
203203

204204
useEffect(() => {
205205
if (currentStep !== prevCurrentStep) {
206-
void setQueryStep(currentStep, { history: 'push' });
206+
void setQueryStep(currentStep);
207207
}
208208
}, [currentStep, prevCurrentStep, setQueryStep]);
209209

0 commit comments

Comments
 (0)