docs: Update migrate-from-next-js.md #5533
MergedHirotoShioi(GitHub profile, opens in a new tab)merged 1 commit into
main fromrefs/pull/5533/headmerged by schiller-manuel(GitHub profile, opens in a new tab) github-actions[bot](GitHub profile, opens in a new tab) added labelsdocumentation
schiller-manuel(GitHub profile, opens in a new tab) changed the title
Sign in to join this conversation.
Walkthrough#
This PR updates the Next.js migration guide documentation to demonstrate TanStack Router's file-based routing API. It replaces default page exports with
createFileRouteRoute declarations, updates data fetching to use loader functions, changes parameter access toRoute.useParams(), and updates Link component imports and usage patterns.Changes#
docs/start/framework/react/migrate-from-next-js.mdcreateFileRouteRoute declarations. Updated data fetching patterns to useloaderfunctions. Changed dynamic parameter access from function props toRoute.useParams()hook. Updated Link component imports fromnext/linkto@tanstack/react-routerwith correspondinghref→toattribute changes.Possibly related PRs#
createFileRouteRoute declarations and updating hook/import patterns.Suggested reviewers#
Poem#
Pre-merge checks and finishing touches#
❌ Failed checks (1 inconclusive)
✅ Passed checks (2 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.
❤️ Share