-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi!
This framework looks very interesting!
We are currently using signals in MojiKit and we would like to migrate the whole project to the solid framework.
We are using .untrackedValue heavily to avoid subscribing to the changes in many places, which is a convenience extension for untracked
/// Signal extensions
extension ReadonlySignalUntrackedValueUtils<T> on ReadonlySignal<T> {
/// Runs a callback function that returns the signal value without
/// subscribing to the signal updates.
///
/// ```dart
/// final counter = signal(0);
/// final untrackedValue = counter.untrackedValue;
/// ```
T get untrackedValue => untracked(() => value);
}
Is there something similar that we can currently use in solid ?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels