primary-violetP
Refine3y ago
15 replies
primary-violet

save and continue

const {
modalProps: createModalProps,
formProps: createFormProps,
show: createModalShow,
} = useModalForm<IBrand>({
action: "create",
warnWhenUnsavedChanges: true,
});

const {
modalProps: editModalProps,
formProps: editFormProps,
show: editModalShow,
id: editId,
} = useModalForm<IBrand>({
action: "edit",
warnWhenUnsavedChanges: true,
});

im using modal to handle crud entity, how to controll save button, i want save and continue saving new one
Was this page helpful?