Inline props does not properly support patterns #718
Labels
A-macro
Area: macros
C-bug
Category: bug, something isn't working
good first issue
Good for newcomers
Describe the bug
Using
#[component(inline_props)]
does not properly account for using patterns in function parameters.To Reproduce
The problem occurs when generating code for the prop struct. This is what ends up being generated currently:
where the
mut
is obviously out of place.Expected behavior
Patterns work seamlessly with
#[component(inline_props)]
Environment
Additional information
Relevant file is
packages/sycamore-macro/src/component.rs
, specifically theinline_props_impl
function.The text was updated successfully, but these errors were encountered: