feat(form): ✨ enhance form functionality and API integration
* Refactor key handling to use uniqueKeyField * Add reset functionality to clear dirty state after save * Introduce new API call specifications for REST and resolve * Implement predefined wrappers for dialogs and popovers * Update todo list to reflect completed tasks
This commit is contained in:
@@ -17,8 +17,7 @@ export const FormerLayout = (props: PropsWithChildren) => {
|
||||
save,
|
||||
scrollAreaProps,
|
||||
id,
|
||||
layout,
|
||||
getState,
|
||||
opened,
|
||||
} = useFormerStore((state) => ({
|
||||
disableHTMlForm: state.disableHTMlForm,
|
||||
getFormMethods: state.getFormMethods,
|
||||
@@ -30,8 +29,8 @@ export const FormerLayout = (props: PropsWithChildren) => {
|
||||
save: state.save,
|
||||
scrollAreaProps: state.scrollAreaProps,
|
||||
id: state.id,
|
||||
layout: state.layout,
|
||||
getState: state.getState,
|
||||
|
||||
opened: state.opened,
|
||||
}));
|
||||
|
||||
useEffect(() => {
|
||||
@@ -41,7 +40,7 @@ export const FormerLayout = (props: PropsWithChildren) => {
|
||||
load(true);
|
||||
}
|
||||
}
|
||||
}, [getFormMethods, request]);
|
||||
}, [getFormMethods, request, opened]);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user