useFormState with bound variables
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
Is it possible to bind variables with a useFormState?
1 Reply
@Dwarf Crocodile Is it possible to bind variables with a useFormState?
bind variable to server action?
yes
yes
const [state, formAction] = useFormState(serverAction.bind(null, variable), {})