feat(frontend): migrate react-router v5 to TanStack Router#40971
Draft
msyavuz wants to merge 1 commit into
Draft
feat(frontend): migrate react-router v5 to TanStack Router#40971msyavuz wants to merge 1 commit into
msyavuz wants to merge 1 commit into
Conversation
…t-based preloading - Replace BrowserRouter/Switch/Route with a TanStack route tree built from the existing routes.tsx table; route chunks preload on link hover/focus (defaultPreload: 'intent') via fire-and-forget loaders - Custom raw-string search param codec so rison payloads round-trip through the router untouched - TanstackRouterAdapter replaces ReactRouter5Adapter for use-query-params - StandaloneRouter (RouterContextProvider-based, synchronous mount) hosts the menu entry on Flask pages and component tests - pushAppHref/replaceAppHref helpers restore v5's basename-prefixing semantics for raw href navigation - useUnsavedChangesPrompt now uses useBlocker - Migrate all 92 importing files; drop react-router-dom dependency
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #40971 +/- ##
========================================
Coverage 64.16% 64.16%
========================================
Files 2655 2655
Lines 143863 143682 -181
Branches 33181 33166 -15
========================================
- Hits 92306 92199 -107
+ Misses 49936 49859 -77
- Partials 1621 1624 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Upgrade react-router to latest tanstack router version
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION