action4#
Kind:
function |
Package: package:preact_signals
Function: action4#
R Function(A, B, C, D) action4(R Function(A, B, C, D) fn)
Wraps a 4-argument callback function in a type-safe action.
Executes fn inside a transaction-safe batch and untracked block.
Example Usage#
final updateUserData = action4((String name, int age, double score, bool active) {
userName.value = name;
userAge.value = age;
userScore.value = score;
userActive.value = active;
});
References#
The action4 type is referenced and used in the following pages: