|
1 | 1 | 'use client';
|
2 | 2 |
|
| 3 | +import type { AnyAction } from '@reduxjs/toolkit'; |
3 | 4 | import {
|
4 |
| - type ValueAnimationTransition, |
5 | 5 | motion,
|
6 | 6 | useAnimate,
|
| 7 | + type ValueAnimationTransition, |
7 | 8 | } 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'; |
9 | 13 | import Navigation from '../components/Navigation';
|
| 14 | +import { actionCreators as sessionActions } from '../ducks/modules/session'; |
| 15 | +import useReadyForNextStage from '../hooks/useReadyForNextStage'; |
10 | 16 | import {
|
11 | 17 | getCurrentStage,
|
| 18 | + getNavigationInfo, |
12 | 19 | makeGetFakeSessionProgress,
|
13 | 20 | } from '../selectors/session';
|
14 |
| -import Stage from './Stage'; |
15 |
| -import { useCallback, useEffect, useRef, useState } from 'react'; |
16 |
| -import { getNavigationInfo } from '../selectors/session'; |
17 | 21 | 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'; |
23 | 23 |
|
24 | 24 | type directions = 'forwards' | 'backwards';
|
25 | 25 |
|
@@ -203,7 +203,7 @@ export default function ProtocolScreen() {
|
203 | 203 |
|
204 | 204 | useEffect(() => {
|
205 | 205 | if (currentStep !== prevCurrentStep) {
|
206 |
| - void setQueryStep(currentStep, { history: 'push' }); |
| 206 | + void setQueryStep(currentStep); |
207 | 207 | }
|
208 | 208 | }, [currentStep, prevCurrentStep, setQueryStep]);
|
209 | 209 |
|
|
0 commit comments