-
Notifications
You must be signed in to change notification settings - Fork 83
wip - add client middleware stack #227
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
| showBcs: true, | ||
| }, | ||
| }); | ||
| getObjects = this.root.middleware.wrap( |
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.
I don't love making all of these instance properties... We could also do
getObjects(options) {
return this.root.middleware.run('core', 'getObjects', this, [options], (options) => {
// contents
})
}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.
Yeah neither do I, I'd probably do it this way
| run<Args extends unknown[], Return extends unknown>( | ||
| scope: string, | ||
| name: string, | ||
| fn: (...args: Args) => Promise<Return>, |
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.
this should be the last arg
Description
Describe the changes or additions included in this PR.
Test plan
How did you test the new or updated feature?