We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33887c commit 8903bf5Copy full SHA for 8903bf5
1 file changed
packages/components/src/renderers/form/form.tsx
@@ -58,8 +58,8 @@ ComponentRegistry.register('form',
58
const [isSubmitting, setIsSubmitting] = React.useState(false);
59
const [submitError, setSubmitError] = React.useState<string | null>(null);
60
61
- // Read DataSource from context so field widgets (e.g. LookupField) can
62
- // dynamically load related records without an explicit dataSource prop.
+ // Read DataSource from SchemaRendererContext and propagate it to field
+ // widgets as a prop so they can dynamically load related records.
63
const schemaCtx = React.useContext(SchemaRendererContext);
64
const contextDataSource = schemaCtx?.dataSource ?? null;
65
0 commit comments