-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Should add an update function to State that can access the current value without creating dependencies. Particularly useful for autorun, e.g.:
autorun(() -> {
someDependencies;
someState.value += 1;// will create infinite loop
});
// vs.:
autorun(() -> {
someDependencies;
someState.update(v -> v + 1);
});nadako
Metadata
Metadata
Assignees
Labels
No labels