You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the setup function receives (props, context). Components won't always be fed props from the parent, but will always need the context, therefore I reason that the props argument must be made optional and context must be provided as the first argument.
What this solves:
Mainly developer experience eg:
setup(_,{ emit }){
...
}
Can become:
setup({ emit }){
...
}
Avoiding redundant exclusion of props if not supplied by parent and developer has choice to access it or not.