feat: make afterLoad callback in Form component asynchronous for improved data handling
This commit is contained in:
parent
e253feba58
commit
822f50595a
|
|
@ -188,7 +188,7 @@ export const Form: React.FC<any> = ({
|
||||||
local.data = res;
|
local.data = res;
|
||||||
local.render(); // Panggil render setelah data diperbarui
|
local.render(); // Panggil render setelah data diperbarui
|
||||||
if (typeof afterLoad === "function") {
|
if (typeof afterLoad === "function") {
|
||||||
afterLoad(local);
|
await afterLoad(local);
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
toast.dismiss();
|
toast.dismiss();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue