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, when declaring props as a simple declaration, the following error is returned: $props() can only be used with an object destructuring pattern
But if the destructuring pattern is used with the rest pattern, the generated code is a simple declaration
let props = $.rest_props($$props, []);
Describe the proposed solution
Treat this let props = $props() in the same way as this let {...props} = $props()
Alternatives considered
Not doing it, although receiving an object as a return instead of having to adopt the rest pattern is more intuitive
Importance
nice to have
The text was updated successfully, but these errors were encountered:
Describe the problem
Currently, when declaring props as a simple declaration, the following error is returned:
$props() can only be used with an object destructuring pattern
But if the destructuring pattern is used with the rest pattern, the generated code is a simple declaration
let props = $.rest_props($$props, []);
Describe the proposed solution
Treat this
let props = $props()
in the same way as thislet {...props} = $props()
Alternatives considered
Not doing it, although receiving an object as a return instead of having to adopt the rest pattern is more intuitive
Importance
nice to have
The text was updated successfully, but these errors were encountered: