fix(react-router,solid-router): top-level `Matches` should use `pendingComponent` on root route #5495
main fromrefs/pull/5495/head·merged by schiller-manuel(GitHub profile, opens in a new tab) fixes #2317
Summary by CodeRabbit#
New Features
- Route-level pending UI: root routes can now specify their own loading placeholder.
Bug Fixes
- Pending-component selection now prefers a route's pending UI and falls back to the router default for consistent loading visuals.
Tests
- Added tests verifying route/root pending behavior and router-level fallback during async route loading.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-router
View your CI Pipeline Execution ↗ for commit 6fc6e2b6af4efabd21aa073bc5ad94800bd76c46
Command Status Duration Result nx affected --targets=test:eslint,test:unit,tes...✅ Succeeded 6m 27s View ↗ nx run-many --target=build --exclude=examples/*...✅ Succeeded 1m 3s View ↗
☁️ Nx Cloud last updated this comment at
2025-10-17 06:46:19UTCMore templates
- tanstack-router-solid-example-basic
- tanstack-router-solid-example-basic-devtools-panel
- tanstack-router-solid-example-basic-file-based
- tanstack-router-solid-example-basic-non-nested-devtools
- tanstack-router-solid-example-basic-solid-query
- tanstack-router-solid-example-basic-solid-query-file-based
- tanstack-router-solid-example-basic-ssr-streaming-file-based
- tanstack-router-solid-example-kitchen-sink-file-based
- tanstack-router-solid-example-quickstart-file-based
- tanstack-solid-start-example-bare
- tanstack-solid-start-example-basic
- tanstack-solid-start-example-basic-static
- tanstack-router-react-example-authenticated-routes
- tanstack-router-react-example-authenticated-routes-firebase
- tanstack-router-react-example-basic
- tanstack-router-react-example-basic-default-search-params
- tanstack-router-react-example-basic-devtools-panel
- tanstack-router-react-example-basic-file-based
- tanstack-router-react-example-basic-non-nested-devtools
- tanstack-router-react-example-react-query
- tanstack-router-react-example-basic-react-query-file-based
- tanstack-router-react-example-basic-ssr-file-based
- tanstack-router-react-example-basic-ssr-streaming-file-based
- tanstack-router-react-example-basic-virtual-file-based
- tanstack-router-react-example-basic-virtual-inside-file-based
- tanstack-router-react-example-deferred-data
- tanstack-router-i18n-paraglide
- tanstack-router-react-example-kitchen-sink
- tanstack-router-react-example-kitchen-sink-file-based
- tanstack-router-react-example-kitchen-sink-react-query
- tanstack-router-react-example-kitchen-sink-react-query-file-based
- tanstack-router-react-example-large-file-based
- tanstack-router-react-example-location-masking
- tanstack-router-react-example-navigation-blocking
- tanstack-router-react-example-quickstart
- tanstack-router-react-example-quickstart-esbuild-file-based
- tanstack-router-react-example-quickstart-file-based
- tanstack-router-react-example-quickstart-rspack-file-based
- tanstack-router-react-example-quickstart-webpack-file-based
- router-monorepo-react-query
- router-mono-simple
- router-mono-simple-lazy
- tanstack-router-react-example-scroll-restoration
- tanstack-search-validator-adapters
- tanstack-start-example-bare
- tanstack-start-example-basic
- tanstack-start-example-basic-auth
- tanstack-start-example-basic-cloudflare
- tanstack-start-example-basic-react-query
- tanstack-start-example-basic-static
- tanstack-start-bun-hosting
- tanstack-start-example-convex-trellaux
- tanstack-start-example-counter
- tanstack-start-i18n-paraglide
- tanstack-start-example-large
- tanstack-start-example-material-ui
- tanstack-start-streaming-data-from-server-functions
- tanstack-start-example-supabase-basic
- tanstack-start-tailwind-v4
- tanstack-start-example-trellaux
- tanstack-start-example-workos
- tanstack-router-react-example-view-transitions
- tanstack-router-react-example-with-framer-motion
- tanstack-router-react-example-with-trpc
- tanstack-router-react-example-with-trpc-react-query
@tanstack/arktype-adapter
npm i https://pkg.pr.new/TanStack/router/@tanstack/arktype-adapter@5495@tanstack/directive-functions-plugin
npm i https://pkg.pr.new/TanStack/router/@tanstack/directive-functions-plugin@5495@tanstack/eslint-plugin-router
npm i https://pkg.pr.new/TanStack/router/@tanstack/eslint-plugin-router@5495@tanstack/history
npm i https://pkg.pr.new/TanStack/router/@tanstack/history@5495@tanstack/nitro-v2-vite-plugin
npm i https://pkg.pr.new/TanStack/router/@tanstack/nitro-v2-vite-plugin@5495@tanstack/react-router
npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router@5495@tanstack/react-router-devtools
npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-devtools@5495@tanstack/react-router-ssr-query
npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-ssr-query@5495@tanstack/react-start
npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start@5495@tanstack/react-start-client
npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-client@5495@tanstack/react-start-server
npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-server@5495@tanstack/router-cli
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-cli@5495@tanstack/router-core
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-core@5495@tanstack/router-devtools
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools@5495@tanstack/router-devtools-core
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools-core@5495@tanstack/router-generator
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-generator@5495@tanstack/router-plugin
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-plugin@5495@tanstack/router-ssr-query-core
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-ssr-query-core@5495@tanstack/router-utils
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-utils@5495@tanstack/router-vite-plugin
npm i https://pkg.pr.new/TanStack/router/@tanstack/router-vite-plugin@5495@tanstack/server-functions-plugin
npm i https://pkg.pr.new/TanStack/router/@tanstack/server-functions-plugin@5495@tanstack/solid-router
npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router@5495@tanstack/solid-router-devtools
npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-devtools@5495@tanstack/solid-start
npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start@5495@tanstack/solid-start-client
npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-client@5495@tanstack/solid-start-server
npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-server@5495@tanstack/start-client-core
npm i https://pkg.pr.new/TanStack/router/@tanstack/start-client-core@5495@tanstack/start-plugin-core
npm i https://pkg.pr.new/TanStack/router/@tanstack/start-plugin-core@5495@tanstack/start-server-core
npm i https://pkg.pr.new/TanStack/router/@tanstack/start-server-core@5495@tanstack/start-static-server-functions
npm i https://pkg.pr.new/TanStack/router/@tanstack/start-static-server-functions@5495@tanstack/start-storage-context
npm i https://pkg.pr.new/TanStack/router/@tanstack/start-storage-context@5495@tanstack/valibot-adapter
npm i https://pkg.pr.new/TanStack/router/@tanstack/valibot-adapter@5495@tanstack/virtual-file-routes
npm i https://pkg.pr.new/TanStack/router/@tanstack/virtual-file-routes@5495@tanstack/zod-adapter
npm i https://pkg.pr.new/TanStack/router/@tanstack/zod-adapter@5495commit:
6fc6e2bgithub-actions[bot](GitHub profile, opens in a new tab) added labelspackage: solid-router
Actionable comments posted: 1
🧹 Nitpick comments (1)
packages/solid-router/src/Matches.tsx (1)
49-52: Consider simplifying rootRoute to a direct assignment.The function wrapper
() => router.routesById['__root__']provides no reactivity benefit here since it's only called once when computingPendingComponentat the top level. Direct assignment would be clearer and consistent with the React implementation.Apply this diff to simplify:
- const rootRoute: () => AnyRoute = () => router.routesById['__root__'] + const rootRoute: AnyRoute = router.routesById['__root__'] const PendingComponent = - rootRoute().options.pendingComponent ?? + rootRoute.options.pendingComponent ?? router.options.defaultPendingComponent📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 4303a8a716c7f3d7ca292a6793b0cc4896394b8b and dd78c82cadcdc5fa15c56484493bdeccbfbdc909.
📒 Files selected for processing (2)
packages/react-router/src/Matches.tsx(2 hunks)packages/solid-router/src/Matches.tsx(3 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
Use TypeScript in strict mode with extensive type safety across the codebase
Files:
packages/solid-router/src/Matches.tsxpackages/react-router/src/Matches.tsx
packages/{react-router,solid-router}/**
📄 CodeRabbit inference engine (AGENTS.md)
Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/
Files:
packages/solid-router/src/Matches.tsxpackages/react-router/src/Matches.tsx
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR PR: TanStack/router#0 File: AGENTS.md:0-0 Timestamp: 2025-09-23T17:36:12.598Z Learning: Applies to packages/{react-router,solid-router}/** : Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/📚 Learning: 2025-09-23T17:36:12.598Z
Learnt from: CR PR: TanStack/router#0 File: AGENTS.md:0-0 Timestamp: 2025-09-23T17:36:12.598Z Learning: Applies to packages/{react-router,solid-router}/** : Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/Applied to files:
packages/solid-router/src/Matches.tsx
🧬 Code graph analysis (2)
packages/solid-router/src/Matches.tsx (1)
packages/router-core/src/route.ts (1)
AnyRoute(778-797)
packages/react-router/src/Matches.tsx (1)
packages/router-core/src/route.ts (1)
AnyRoute(778-797)
🔇 Additional comments (3)
packages/react-router/src/Matches.tsx (2)
15-15: LGTM: Type import added correctly.The
AnyRoutetype import is necessary for typing the root route.
45-50: LGTM: Root route pending component resolution implemented correctly.The implementation correctly resolves the pending component from the root route's options before falling back to the router's default pending component. This fixes the issue where the pending component defined on
__root__was not being used.The nullish coalescing operator ensures proper fallback behavior, and the
pendingElementcorrectly renders the component or null.packages/solid-router/src/Matches.tsx (1)
59-59: LGTM: Pending component resolution implemented correctly.The fallback correctly uses the resolved
PendingComponent, which now properly prioritizes the root route's pending component before falling back to the router's default. This fixes the issue where the pending component defined on__root__was not being displayed.OutdatedResolvedby TkDodo@@ -1,2 +1,3 @@11 import * as Solid from 'solid-js'22 import warning from 'tiny-warning'3+import * as React from 'react'⚠️ Potential issue | 🟡 Minor
Remove unused React import.
This file implements Solid bindings and should not import React. The import is unused and adds an unnecessary dependency.
Apply this diff to remove the import:
-import * as React from 'react'📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
🤖 Prompt for AI Agents
In packages/solid-router/src/Matches.tsx around line 3, remove the unused "import * as React from 'react'" statement; ensure there are no remaining React-specific references (JSX is supported by Solid's setup) and the file compiles without that dependency—delete the import line and run a quick typecheck/build to confirm no other React symbols are used.TkDodo reviewed
packages/react-router/src/Matches.tsx line 45Outdated@@ -41,3 +42,4 @@41424243 export function Matches() {4344 const router = useRouter()45+ const rootRoute: AnyRoute = router.routesById['__root__']do we need to be defensive here and type this as
AnyRoute | undefined. I think a__root__route must always exist ...please use
rootRouteIdfrom@tanstack/router-coreinstead of__root__and to answer your question, the answer is probably not, since a root route must always be present, but if it helps silence typescript then a
!assertion or athrow Errorshould be fine.done: 74a38350
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/solid-router/tests/Matches.test.tsx (1)
225-247: LGTM! Test correctly verifies root route's pendingComponent is displayed.The test successfully validates that the root route's
pendingComponentis shown during the loader execution and that the index route renders after loading completes.Optional enhancement: Consider adding an assertion to verify the pending component is no longer present after loading completes, and that the
defaultPendingComponentwas never used:expect(await rendered.findByText('root pending...')).toBeInTheDocument() expect(await rendered.findByText('index route')).toBeInTheDocument() + expect(rendered.queryByText('root pending...')).not.toBeInTheDocument() + expect(rendered.queryByText('default pending...')).not.toBeInTheDocument()This would make the test more explicit about the expected behavior and provide better coverage of the pending component lifecycle.
packages/react-router/tests/Matches.test.tsx (1)
125-147: LGTM! Test correctly verifies root route's pendingComponent is displayed.The test successfully validates that the root route's
pendingComponentis shown during the loader execution and that the index route renders after loading completes.Optional enhancement: Consider adding an assertion to verify the pending component is no longer present after loading completes, and that the
defaultPendingComponentwas never used:expect(await rendered.findByText('root pending...')).toBeInTheDocument() expect(await rendered.findByText('index route')).toBeInTheDocument() + expect(rendered.queryByText('root pending...')).not.toBeInTheDocument() + expect(rendered.queryByText('default pending...')).not.toBeInTheDocument()This would make the test more explicit about the expected behavior and provide better coverage of the pending component lifecycle.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 955e61a76e3e5627eb42b2ab59ae169bdb4bffb9 and 051390a0f82497984b4ae79e2eb93e72fcbeb0e5.
📒 Files selected for processing (2)
packages/react-router/tests/Matches.test.tsx(1 hunks)packages/solid-router/tests/Matches.test.tsx(1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
Use TypeScript in strict mode with extensive type safety across the codebase
Files:
packages/react-router/tests/Matches.test.tsxpackages/solid-router/tests/Matches.test.tsx
packages/{react-router,solid-router}/**
📄 CodeRabbit inference engine (AGENTS.md)
Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/
Files:
packages/react-router/tests/Matches.test.tsxpackages/solid-router/tests/Matches.test.tsx
🧬 Code graph analysis (1)
packages/solid-router/tests/Matches.test.tsx (1)
packages/solid-router/src/RouterProvider.tsx (1)
RouterProvider(44-53)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Test
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/react-router/tests/Matches.test.tsx (1)
125-143: Consider adding an assertion to verifydefaultPendingComponentis not rendered.The test correctly verifies that the root route's
pendingComponentis shown, but it would be more comprehensive to also assert that the router'sdefaultPendingComponent("default pending...") is NOT shown. This would explicitly validate the precedence behavior being fixed.Add this assertion after rendering but before the first
findByText:const rendered = render(<RouterProvider router={router} />) + expect(rendered.queryByText('default pending...')).not.toBeInTheDocument() expect(await rendered.findByText('root pending...')).toBeInTheDocument() expect(await rendered.findByText('root content')).toBeInTheDocument()📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 051390a0f82497984b4ae79e2eb93e72fcbeb0e5 and 13d45c13b58ab7e358f2d94910f6c26ca1c85ce1.
📒 Files selected for processing (2)
packages/react-router/tests/Matches.test.tsx(1 hunks)packages/solid-router/tests/Matches.test.tsx(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/solid-router/tests/Matches.test.tsx
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
Use TypeScript in strict mode with extensive type safety across the codebase
Files:
packages/react-router/tests/Matches.test.tsx
packages/{react-router,solid-router}/**
📄 CodeRabbit inference engine (AGENTS.md)
Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/
Files:
packages/react-router/tests/Matches.test.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Test
schiller-manuel(GitHub profile, opens in a new tab)replied on
packages/react-router/src/Matches.tsxline 45please use
rootRouteIdfrom@tanstack/router-coreinstead of__root__- packages/react-router/tests/Matches.test.tsx line 127Outdated@@ -121,3 +121,7 @@121121122122 expect(await screen.findByText('Incorrect Matches -')).toBeInTheDocument()123123 })124+125+test('should show pendingComponent of root route', async () => {126+ const root = createRootRoute({127+ pendingComponent: () => <div>root pending...</div>,
please use
data-testidand getByTestId or similar methods instead of looking for textual matchesdone: 6fc6e2b6
- Resolvedby TkDodo@@ -121,3 +121,13 @@121121122122 expect(await screen.findByText('Incorrect Matches -')).toBeInTheDocument()123123 })124+125+test('should show pendingComponent of root route', async () => {126+ const root = createRootRoute({127+ pendingComponent: () => <div>root pending...</div>,128+ loader: async () => {129+ await new Promise((r) => setTimeout(r, 50))130+ },131+ component: () => 'root content',132+ })133+ const router = createRouter({
same here
and to answer your question, the answer is probably not, since a root route must always be present, but if it helps silence typescript then a
!assertion or athrow Errorshould be fine.SeanCassiere changed the title
done: 74a38350
done: 6fc6e2b6
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/solid-router/src/Matches.tsx (1)
49-52: Consider simplifyingrootRouteto a direct reference.The
rootRouteis defined as a function but only called once to derivePendingComponent. SincePendingComponentis not wrapped in a reactive primitive (likecreateMemo), it won't update reactively anyway. Additionally, consider adding optional chaining for defensive coding in case the root route is unexpectedly missing.Apply this diff to simplify:
- const rootRoute: () => AnyRoute = () => router.routesById[rootRouteId] - const PendingComponent = - rootRoute().options.pendingComponent ?? - router.options.defaultPendingComponent + const rootRoute = router.routesById[rootRouteId] + const PendingComponent = + rootRoute?.options.pendingComponent ?? + router.options.defaultPendingComponent📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 13d45c13b58ab7e358f2d94910f6c26ca1c85ce1 and 6fc6e2b6af4efabd21aa073bc5ad94800bd76c46.
📒 Files selected for processing (4)
packages/react-router/src/Matches.tsx(3 hunks)packages/react-router/tests/Matches.test.tsx(1 hunks)packages/solid-router/src/Matches.tsx(3 hunks)packages/solid-router/tests/Matches.test.tsx(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- packages/react-router/src/Matches.tsx
- packages/react-router/tests/Matches.test.tsx
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
Use TypeScript in strict mode with extensive type safety across the codebase
Files:
packages/solid-router/tests/Matches.test.tsxpackages/solid-router/src/Matches.tsx
packages/{react-router,solid-router}/**
📄 CodeRabbit inference engine (AGENTS.md)
Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/
Files:
packages/solid-router/tests/Matches.test.tsxpackages/solid-router/src/Matches.tsx
🧠 Learnings (1)
📚 Learning: 2025-09-23T17:36:12.598Z
Learnt from: CR PR: TanStack/router#0 File: AGENTS.md:0-0 Timestamp: 2025-09-23T17:36:12.598Z Learning: Applies to packages/{react-router,solid-router}/** : Implement React and Solid bindings/components only in packages/react-router/ and packages/solid-router/Applied to files:
packages/solid-router/src/Matches.tsx
🧬 Code graph analysis (2)
packages/solid-router/tests/Matches.test.tsx (1)
packages/solid-router/src/RouterProvider.tsx (1)
RouterProvider(44-53)
packages/solid-router/src/Matches.tsx (1)
packages/router-core/src/route.ts (1)
AnyRoute(778-797)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Preview
- GitHub Check: Test
🔇 Additional comments (3)
packages/solid-router/src/Matches.tsx (2)
3-3: LGTM! Imports support the root route pending component resolution.The new imports of
rootRouteIdandAnyRouteare necessary for accessing and typing the root route to resolve itspendingComponent.Also applies to: 12-12
49-59: Excellent fix! Root route'spendingComponentnow renders correctly.The implementation correctly prioritizes the root route's
pendingComponentover the router'sdefaultPendingComponentand uses it as the Suspense fallback. This resolves the issue where the root route's pending component was unmounting prematurely.packages/solid-router/tests/Matches.test.tsx (1)
225-244: LGTM! Test validates root routependingComponentbehavior.The test correctly verifies that:
- A
pendingComponentcan be specified on the root route - The pending component renders while the root loader executes
- The root content appears after the loader completes
The test structure properly exercises the fix for issue #2317.
Sign in to join this conversation.
Walkthrough#
Resolve the root route's
pendingComponent(fromrouter.routesById[rootRouteId]) before falling back to the router'sdefaultPendingComponent, and use that resolved component (if any) as the Suspense fallback so the root route's pending UI remains mounted while its loader runs.Changes#
packages/react-router/src/Matches.tsx,packages/solid-router/src/Matches.tsxrootRouteIdandAnyRoutefrom@tanstack/router-core; derive the root route viarouter.routesById[rootRouteId]; compute `PendingComponent = rootRoute?.options.pendingComponentpackages/react-router/tests/Matches.test.tsx,packages/solid-router/tests/Matches.test.tsxpendingComponentand a delayedloader, configure the router withdefaultPendingMs/defaultPendingComponent, and assert the root pending UI appears before the root content.Sequence Diagram(s)#
Estimated code review effort#
🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs#
Suggested reviewers#
Poem#
Pre-merge checks and finishing touches#
❌ Failed checks (1 warning)
@coderabbitai generate docstringsto improve docstring coverage.✅ Passed checks (4 passed)
Matchesshould usependingComponenton root route" directly and clearly reflects the main change in the pull request. The changes in both packages modify the Matches component to check for and prioritize the pendingComponent defined on the root route before falling back to the router's defaultPendingComponent. The title is concise, specific, and accurately summarizes the primary objective of the changeset without vague language or unnecessary details.✨ Finishing touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.