We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a078ecf commit 1ea266aCopy full SHA for 1ea266a
frontend/packages/pydantic-forms/src/components/render/RenderForm.tsx
@@ -5,7 +5,7 @@
5
*
6
* Here we define the outline of the form
7
*/
8
-import React from 'react';
+import React, { useEffect } from 'react';
9
10
import { useTranslations } from 'next-intl';
11
@@ -26,9 +26,14 @@ const RenderForm = (contextProps: PydanticFormContextProps) => {
26
isSending,
27
skipSuccessNotice,
28
loadingComponent,
29
+ rhf,
30
} = contextProps;
31
const { formRenderer, footerRenderer, headerRenderer } = config || {};
32
33
+ useEffect(() => {
34
+ rhf.trigger();
35
+ }, [rhf, pydanticFormSchema]);
36
+
37
const pydanticFormComponents: PydanticFormComponents =
38
getPydanticFormComponents(
39
pydanticFormSchema?.properties || {},
0 commit comments