-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: add serverFnMeta as optional to request middleware #6366
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
Conversation
📝 WalkthroughWalkthroughThis PR introduces server-side request middleware that captures server function metadata (id, name, filename) and propagates it through route context, loaders, and components. Changes extend the Changes
Sequence DiagramsequenceDiagram
participant Client
participant RequestMiddleware
participant RouteContext
participant RouteLoader
participant RouteComponent
Client->>RequestMiddleware: HTTP request (server function call)
RequestMiddleware->>RequestMiddleware: Capture serverFnMeta<br/>(id, name, filename)
RequestMiddleware->>RouteContext: Store as requestCapturedMeta
RouteContext->>RouteLoader: Pass requestCapturedMeta<br/>via loaderData
RouteContext->>RouteComponent: Expose pageRequestServerFnMeta<br/>via Route.useRouteContext
RouteComponent->>RouteComponent: Display metadata from<br/>loader + route context
RouteComponent->>Client: Render with captured metadata
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~28 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{js,ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-12-24T22:47:44.320ZApplied to files:
🧬 Code graph analysis (2)packages/start-client-core/src/createMiddleware.ts (2)
e2e/react-start/server-functions/src/routes/middleware/function-metadata.tsx (2)
⏰ 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)
🔇 Additional comments (10)
Comment |
|
View your CI Pipeline Execution ↗ for commit 3233b64
☁️ Nx Cloud last updated this comment at |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.