Uh oh!
There was an error while loading. Please reload this page.
fix(solid-start): redirect from server function - #5637
Conversation
WalkthroughAdds end-to-end test coverage for server-function redirects on direct navigation to both React and Solid start examples. Introduces Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Router
participant Server
participant Client
User->>Router: Navigate to /redirect-test/
Router->>Client: Render index route component
Client->>Server: Call useServerFn($redirectServerFn) via useQuery
Server->>Server: Execute server function handler
Server-->>Server: throw redirect('/redirect-test/target')
Server-->>Client: Return redirect response
Client->>Router: Process redirect
Router->>Router: Navigate to /redirect-test/target
Router->>Client: Render target route component
Client->>User: Display "Successfully redirected!"
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related issues
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
e2e/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/src/routes/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (4)e2e/react-start/server-functions/src/routes/redirect-test/index.tsx (1)
e2e/solid-start/server-functions/src/routes/redirect-test/target.tsx (1)
e2e/react-start/server-functions/src/routes/redirect-test/target.tsx (1)
e2e/solid-start/server-functions/src/routes/redirect-test/index.tsx (1)
🔇 Additional comments (12)
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 76b9c9c
☁️ 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-adaptercommit: |
Uh oh!
There was an error while loading. Please reload this page.
test for
pass for react, fails for solid
Summary by CodeRabbit
New Features
Tests