feat: make afterLoad callback in Form component asynchronous for improved data handling

This commit is contained in:
faisolavolut 2025-02-14 13:07:40 +07:00
parent e253feba58
commit 822f50595a
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ export const Form: React.FC<any> = ({
local.data = res;
local.render(); // Panggil render setelah data diperbarui
if (typeof afterLoad === "function") {
afterLoad(local);
await afterLoad(local);
}
setTimeout(() => {
toast.dismiss();