-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
Chained Server Fn Syntax, ServerFn Middleware #2513
base: main
Are you sure you want to change the base?
Conversation
Let's goooo 🚀 |
} as ServerMiddleware<TId, TMiddlewares, TValidator, TContext> | ||
} | ||
|
||
const middleware1 = createServerMiddleware({ |
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.
Remove
> | ||
} | ||
|
||
const middleware1 = createMiddleware().server(async ({ context, next }) => { |
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.
cleanup
path: babel.NodePath<t.CallExpression>, | ||
opts: ParseAstOptions, | ||
) { | ||
// const firstArg = path.node.arguments[0] |
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.
cleanup
{ | ||
name: 'custom-hot-update-client', | ||
handleHotUpdate(ctx) { | ||
console.log('server hot', ctx) |
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.
remove
☁️ Nx Cloud ReportCI is running/has finished running commands for commit dbf1c95. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
…uter into server-fn-middleware
Todo:
router-
prefix)Nice To Have:
registerServerMiddleware([a, b, c])
to add global middlewareMaybe?