-
|
I am writing a simple app, which as a main state uses non-clonable structure called fn dictionary_view(dizola_state: RwSignal<Dizola<'static>>) -> AnyView {
text(dizola_state.read_only().effect()).into_any()
}When I try to use and it is because method implemented only for signals, which store type that is clonable. I am new to floem and it's reactive system, and because of that I can't understand why clone is needed in this situation? If someone can give me some hints on that matter, or share good examples on how to work with floem (without clone and without putting signals inside your state structure), I will really appreciate that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
.get()needs the data stored isClone. The one you need in this case is.with()