don't expose the signal scope subscriber API publicly

This commit is contained in:
Evan Almloff committed 2024-02-05 08:13:52 -06:00
1 parent 30bac267c9
commit 91fea15cdc
4 files changed
+18 -7

No files matched your search

+2 -2
View File
@@ -49,7 +49,7 @@ pub fn use_maybe_sync_memo<R: PartialEq, S: Storage<SignalData<R>>>(
) -> ReadOnlySignal<R, S> {
use_hook(|| {
// Get the current reactive context
let rc = ReactiveContext::new(None);
let rc = ReactiveContext::new();
// Create a new signal in that context, wiring up its dependencies and subscribers
let mut state: Signal<R, S> = rc.run_in(|| Signal::new_maybe_sync(f()));
@@ -129,7 +129,7 @@ where
let selector = use_hook(|| {
// Get the current reactive context
let rc = ReactiveContext::new(None);
let rc = ReactiveContext::new();
// Create a new signal in that context, wiring up its dependencies and subscribers
let mut state: Signal<R, S> =