Open zakstucke opened 2 months ago
This is an interesting case in which the compiler is able to infer that the types satisfy the trait constraints quite easily, but it's fairly hard to express to the compiler "trust me, this thing is going to satisfy those constraints" in an impl
block. I played around with it for twenty or thirty minutes and... failed.
That said, that suggests to me that it's a design problem, not a user problem. I will mess around with things a little to see if I can make it easier to express to the compiler that this is fine.
Describe the bug Separating routes into a separate component works at the top level of
<Routes />
, but fails to compile when already inside a<ParentRoute/>
.Leptos Dependencies Verified on main branch.
To Reproduce The
router
example fails to compile when wrapping the<ContactRoutes/>
component in an outer<ParentRoute/>
. Simplified below:Fails to compile.
Compiles (ContactRoutes contents in place instead of separate component)
Error: