Conversation
📝 WalkthroughWalkthroughRemoved the barrel re-export of Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
|
View your CI Pipeline Execution ↗ for commit 6565946
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
packages/router-core/src/router.ts (1)
1-31: Fix import order to satisfy lint rule.
Place the externalisServerimport with the other external imports.🔧 Suggested fix
import { Store, batch } from '@tanstack/store' import { createBrowserHistory, parseHref } from '@tanstack/history' +import { isServer } from '@tanstack/router-core/isServer' import { createControlledPromise, decodePath, deepEqual, @@ } from './path' -import { isServer } from '@tanstack/router-core/isServer' import { createLRUCache } from './lru-cache'packages/router-core/src/load-matches.ts (1)
1-7: Fix import order to satisfy ESLint (import/order).
Line 7 is an external import and should be grouped with other externals before relative imports.♻️ Proposed fix
import { batch } from '@tanstack/store' import invariant from 'tiny-invariant' -import { createControlledPromise, isPromise } from './utils' -import { isNotFound } from './not-found' -import { rootRouteId } from './root' -import { isRedirect } from './redirect' import { isServer } from '@tanstack/router-core/isServer' +import { createControlledPromise, isPromise } from './utils' +import { isNotFound } from './not-found' +import { rootRouteId } from './root' +import { isRedirect } from './redirect'
🤖 Fix all issues with AI agents
In `@packages/router-core/src/scroll-restoration.ts`:
- Around line 1-3: The import order violates the lint rule: move the external
import isServer (from '@tanstack/router-core/isServer') before the local imports
functionalUpdate (from './utils') and the type AnyRouter (from './router') so
external imports precede local ones; update the import statements accordingly to
ensure the external symbol isServer appears above the local symbols
functionalUpdate and AnyRouter.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.