diff --git a/services/platform/app/components/ui/editor/use-form-editor.test.tsx b/services/platform/app/components/ui/editor/use-form-editor.test.tsx index 81540bb53..14d0926ce 100644 --- a/services/platform/app/components/ui/editor/use-form-editor.test.tsx +++ b/services/platform/app/components/ui/editor/use-form-editor.test.tsx @@ -119,6 +119,31 @@ describe('useFormEditor', () => { expect(result.current.reset).toBe(reset0); }); + it('seeds defined defaultValues while data is still loading (controlled from first render)', () => { + const { result, rerender } = renderHook( + ({ data }: { data: Form | undefined }) => + useFormEditor