Repository navigation
Conversation
✅ Deploy Preview for vue-router canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe duplicated-navigation cleanup now checks for a loader entry before resetting pending state. A server-side regression test verifies the initial navigation and repeated-navigation failure for a loader configured with ChangesNavigation guard cleanup
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Repeated SSR navigation to a route with a server:false loader now avoids the missing-entry crash. The inspected path has no pending state to clean up, and no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2831 +/- ##
=======================================
Coverage 88.26% 88.26%
=======================================
Files 78 78
Lines 6305 6305
Branches 2048 2048
=======================================
Hits 5565 5565
Misses 651 651
Partials 89 89 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
posva
left a comment
There was a problem hiding this comment.
Even if the fix is one char, I'm afraid it could hide other bugs in the future.
Do you have any realistic reproduction of this bug?
|
|
||
| await router.push('/fetch') | ||
| expect(router.currentRoute.value.path).toBe('/fetch') | ||
| const failure = await router.push('/fetch') |
There was a problem hiding this comment.
But why would this happen during SSR? There is only one navigation on the server
A duplicated navigation to a route with loader
server: falsecrashes on SSR with TypeError instead of resolving the navigation failure.This fixes the crash.
Summary by CodeRabbit