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
Describe the bug
I get the Rust error this function takes 2 arguments but 1 argument was supplied when trying to call a component without props with the Builder API.
// If only 1 argument, add an additional argument of type `()`.
if inputs.len() == 1{
sig.inputs.push(parse_quote!{ _:()});
}
was added in 881cddb.
That commit made empty props implicit for the component definition but made it explicit when calling the component - I'm not sure if there was a reason behind making it explicit that I'm not aware of but @lukechu10 would know :)
If this can be changed then from my quick scan of the macro code I think we'd just need to remove those few lines I linked above 🤔.
Describe the bug
I get the Rust error
this function takes 2 arguments but 1 argument was supplied
when trying to call a component without props with the Builder API.To Reproduce
Expected behavior
I expect to be able to call the component like a normal function, as I was able to in the previous version.
Environment
0.8.0-beta.5
The text was updated successfully, but these errors were encountered: