leptos-use
leptos-use copied to clipboard
sync_signal allow a store field
sync_signal accepts rw and signals. But with reactive stores you can't sync a signal. Add support for this type to.
Would you mind providing a minimal example that currently doesn't work, but should do so?
Something like this:
#[derive(Debug, Store, Serialize, Deserialize)]
struct Todos {
user: String,
}
let data = Todos {
user: String::from("Bob")
};
let store = Store::new(data());
let rw = RwSignal::new(String::from("John"));
sync_signal(store.user(), rw);