pub trait AsRcKeySignal<T: Hash> {
// Required method
fn rc_key(self) -> RcKeySignal<T>;
}Expand description
Extension to allow for tracking key changes. If I can get some changes into sycamore this should become redundant
§Usage
use sycamore_query::prelude::*;
let signal = create_rc_signal("Test");
// Updates every time signal changes
use_query(cx, ("hello", signal.clone().rc_key()), move || hello(signal.get().to_string());Required Methods§
Sourcefn rc_key(self) -> RcKeySignal<T>
fn rc_key(self) -> RcKeySignal<T>
Creates a copy of the signal that tracks when it’s hashed (sycamore uses get_untracked
in the Hash implementation for signals).