Closed bicarlsen closed 5 days ago
This is true on all versions and working as designed -- view
takes a function with no arguments, and a component is only a function of no arguments if it has no props. Otherwise it is a function of one argument, the struct of props. Register has one prop (not zero), so it is a function of one argument (the props struct), not zero.
<Route ... view=Component/>
fails ifComponent
has an optional prop, but<Route ... view=view! { <Component/> }/>
works.Leptos Dependencies
To Reproduce See example above.
Expected behavior Optional props will be set to their default value.
Screenshots N/A
Additional context N/A