Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels