feat: implemented useFormHooks hook for calling hooks on create

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-10-11 18:00:26 +02:00
parent 189201ef4b
commit aee334c14c
13 changed files with 226 additions and 148 deletions
@@ -59,7 +59,7 @@ export interface TemplateEntityV1beta3 extends Entity {
/**
* Form hooks to be run
*/
EXPERIMENTAL_formHooks?: { id: string; input: JsonObject }[];
EXPERIMENTAL_formHooks?: { id: string; input?: JsonObject }[];
/**
* This is a JSONSchema or an array of JSONSchema's which is used to render a form in the frontend