Jan 4, 2024
0
Level 1
Asynchronous "Action" operation?
In Repeater I have an Actions that fetches data from the API and updates the component. Unfortunately Action::make work synchronously (multiple click) and I need to have asynchronous work. Is there any other way to make async work?
->action(function (Set $set, $state) {
// connect to API
$state = $dataFromAPI
$set("photos", $state);
})`
Please or to participate in this conversation.