action0#
Kind:
function |
Package: package:preact_signals
Function: action0#
R Function() action0(R Function() fn)
Wraps a 0-argument callback function in a type-safe action.
Executes fn inside a transaction-safe batch and untracked block.
Example Usage#
final increment = action0(() {
count.value++;
clicks.value++;
});
References#
The action0 type is referenced and used in the following pages: