-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
I was reading the yew-router guide yesterday, which has this code: https://github.com/yewstack/yew_router/blob/master/examples/guide/chapters/02_router_component.md#example
html! {
<Router>
<Route matcher=route!("/b")>
<BModel/>
</Route>
...Presumably, state passed as attributes to BModel could borrow from self at the time the guide was written (like <BModel foo=&self.bar />). But this example (and others from the guide) don't compile anymore..
I'd really like to have this back, because currently it's very inconvenient.
Also with functions mapped over iterators that should be rendered (like
{ for self.foos.iter().map(render_foo) }), currently they can't borrow from self anymore either..
Fi3