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
Using 0.7.0-rc0, the view! macro does not compile if leptos::prelude::ElementChild is not in scope.
Leptos Dependencies
leptos = { version = "0.7.0-rc0", default-features = false, features = ["csr"] }
To Reproduce
The code below will not compile without use leptos::prelude::ElementChild on line 3. Adding #[component] does not change the result, so I have removed it to minimize the code.
use leptos::{view, prelude::ClassAttribute,IntoView};// this is not referenced directly anywhereuse leptos::prelude::ElementChild;#[allow(non_snake_case)]pubfnBadView(title:String,body:String) -> implIntoView{view!{
<div class="content"><hgroup>
<h1>{title}</h1>
</hgroup></div>
<div class="content">{body}</div>
}}
Expected behavior
The code should compile.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Using
0.7.0-rc0
, theview!
macro does not compile ifleptos::prelude::ElementChild
is not in scope.Leptos Dependencies
To Reproduce
The code below will not compile without
use leptos::prelude::ElementChild
on line 3. Adding#[component]
does not change the result, so I have removed it to minimize the code.Expected behavior
The code should compile.
Screenshots
The text was updated successfully, but these errors were encountered: