-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Simplify using invokable commands when the component is used standalone #60394
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: 7.3
Are you sure you want to change the base?
[Console] Simplify using invokable commands when the component is used standalone #60394
Conversation
So we really need the extra method addInvokable() or could we handle this automatically? |
We cannot widen the argument type in |
e07ce18
to
5cf2a0d
Compare
We could remove it and handle it internally, couldn't we? Do we need to adjust addCommands() method as well? |
Cool, thanks for working on this.
@OskarStark If you mean removing the type declaration then it's a BC break too unfortunately, see https://3v4l.org/5dhmc. I'd prefer the invokable concept not to leak into public API though. What about adding |
5cf2a0d
to
758b85e
Compare
758b85e
to
2a19b9b
Compare
@chalasr I've made the changes you requested, please let me know what you think. |
Inspired by #60389 (comment) .
This PR enables using invokable command when the component is used standalone: