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
the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<yew::callback::Callback<_>, utils::DefaultCallback<yew::callback::Callback<()>>>` is not satisfied
the trait `yew::virtual_dom::Transformer<yew::callback::Callback<_>, utils::DefaultCallback<yew::callback::Callback<()>>>` is not implemented for `yew::virtual_dom::vcomp::VComp`
help: the following implementations were found:
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, T>>
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, std::option::Option<T>>>
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::option::Option<std::string::String>>>
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::string::String>>
and 3 others
note: required by `yew::virtual_dom::Transformer::transform`rustc(E0277)
navbar.rs(116, 42): the trait `yew::virtual_dom::Transformer<yew::callback::Callback<_>, utils::DefaultCallback<yew::callback::Callback<()>>>` is not implemented for `yew::
Question
I have a component which I want to include a optional callback.
I have this in Props
now when I call that component and include a callback in the attribute onsignal:
I get this error:
this the navbar component code:
https://github.com/spielrs/yew-styles-page/tree/add-default-callback-navbar-item/crate/yew_styles/src/components/navbar
What I've tried (optional)
implement
Transformer
forDefaultCallback<Callback<()>>
but didn't workThe text was updated successfully, but these errors were encountered: