-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test(solid-start): fix dev server for suspense transition #5647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(solid-start): fix dev server for suspense transition #5647
Conversation
WalkthroughThe change deduplicates and relocates the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 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. Comment |
|
View your CI Pipeline Execution ↗ for commit 89460cc
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/arktype-adapter
@tanstack/directive-functions-plugin
@tanstack/eslint-plugin-router
@tanstack/history
@tanstack/nitro-v2-vite-plugin
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-ssr-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-ssr-query-core
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-router-ssr-query
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-static-server-functions
@tanstack/start-storage-context
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/zod-adapter
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
e2e/solid-start/basic-solid-query/src/routes/posts.$postId.tsx (1)
5-7: Replaceanywith a more specific error type.The
errorparameter is typed asany, which violates the TypeScript strict mode guidelines for this codebase. Consider usingErrororunknownfor better type safety.As per coding guidelines.
Apply this diff:
-export function PostErrorComponent({ error }: { error: any }) { +export function PostErrorComponent({ error }: { error: Error }) { return <ErrorComponent error={error} /> }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
e2e/solid-start/basic-solid-query/src/routes/posts.$postId.tsx(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
Use TypeScript in strict mode with extensive type safety across the codebase
Files:
e2e/solid-start/basic-solid-query/src/routes/posts.$postId.tsx
**/src/routes/**
📄 CodeRabbit inference engine (AGENTS.md)
Place file-based routes under src/routes/ directories
Files:
e2e/solid-start/basic-solid-query/src/routes/posts.$postId.tsx
e2e/**
📄 CodeRabbit inference engine (AGENTS.md)
Store end-to-end tests under the e2e/ directory
Files:
e2e/solid-start/basic-solid-query/src/routes/posts.$postId.tsx
🔇 Additional comments (1)
e2e/solid-start/basic-solid-query/src/routes/posts.$postId.tsx (1)
5-7: Verify that deduplication fixes the suspense-transition issue.The deduplication of
PostErrorComponentis a good refactor, but the connection to fixing the suspense-transition test (issue #5646) is not immediately clear from the code changes alone. Duplicate component exports can cause hydration mismatches or module resolution differences between dev and production builds in Solid Start.Please confirm that this change resolves the issue where
/suspense-transitionshows nothing in dev but works in production.
fix #5646
Summary by CodeRabbit