Replies: 2 comments 8 replies
-
Also the callable class to access value, but not sure if that's quicker to type than |
Beta Was this translation helpful? Give feedback.
0 replies
-
I noticed that
extension SignalExtension<T> on Signal<T> {
T call({bool untracked = false}) {
if (untracked) {
return untrackedValue;
}
return value;
}
void set(T value) {
this.value = value;
}
void update(T Function(T value) callback) {
value = callback.call(untrackedValue);
}
} |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would be nice to have
set
andupdate
methods, just like angular signals.Beta Was this translation helpful? Give feedback.
All reactions