We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yes, the AddAnyAttr trait is not implemented for Static<V>, resulting in compiler errors when attempting to add attributes to static strings.
AddAnyAttr
Static<V>
#[component] fn A(children: Children) -> impl IntoView { view! { {children()} } } #[component] fn B() -> impl IntoView { view! { <A attr:class="x"> "Test" </A> } }
Implement the AddAnyAttr trait for Static<V> so that adding an attribute returns the static string unchanged, ensuring type safety and compatibility.
It's a small edge case that doesn't really need action, but for the sake of polish, might be nice.
The text was updated successfully, but these errors were encountered:
Implement AddAnyAttr trait for Static<V>
5e3a2d2
Closes leptos-rs#3463
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Yes, the
AddAnyAttr
trait is not implemented forStatic<V>
, resulting in compiler errors when attempting to add attributes to static strings.Describe the solution you'd like
Implement the
AddAnyAttr
trait forStatic<V>
so that adding an attribute returns the static string unchanged, ensuring type safety and compatibility.Additional context
It's a small edge case that doesn't really need action, but for the sake of polish, might be nice.
The text was updated successfully, but these errors were encountered: