fix: route context being undefined when navigating to a new route faster than beforeLoad resolves#6049
Conversation
…ter than beforeLoad resolves
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ 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 |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected --targets=test:eslint,test:unit,tes... |
❌ Failed | 2m 2s | View ↗ |
nx run-many --target=build --exclude=examples/*... |
✅ Succeeded | 3s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-12-09 09:05:35 UTC

This is just the unit tests. No fix is implemented. Leaving that to you guys. Interestingly, I couldn't get the bug to reproduce in the solid-js unit test, even though that's where we're having the issue. But the bug reproduces in the react-router unit test.
Fixes #6040