Open Poafs1 opened 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
celatone-frontend-staging | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 8, 2024 4:35am |
The changes involve the useNetworkStepper
hook in src/lib/pages/custom-network/manual/hooks/useNetworkStepper.ts
, specifically altering the navigation behavior during component mounting. The router.push
method has been replaced with router.replace
within the useEffect
hook to modify how the URL is managed when the currentStep
is not equal to 1. The existing navigation functions for progressing to the next step and returning to the previous step remain unchanged.
File Path | Change Summary |
---|---|
src/lib/pages/custom-network/manual/hooks/useNetworkStepper.ts | Replaced router.push with router.replace in useEffect for navigation; other navigation functions unchanged. |
sequenceDiagram
participant User
participant Component
participant Router
User->>Component: Mount
Component->>Router: Check currentStep
alt currentStep != 1
Router-->>Component: Replace URL
else currentStep == 1
Router-->>Component: No action
end
Component->>User: Display current step
🐰 "In the code where steps align,
A hop to replace, oh how divine!
The router's path now clear and bright,
Onward we go, with all our might!
Through steps we dance, both near and far,
Hopping along, like a twinkling star!" ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes