Skip to content

Commit 8903bf5

Browse files
Copilothotlong
andcommitted
refactor(components): clarify DataSource propagation comment in form renderer
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent d33887c commit 8903bf5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/components/src/renderers/form

packages/components/src/renderers/form/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ ComponentRegistry.register('form',
5858
const [isSubmitting, setIsSubmitting] = React.useState(false);
5959
const [submitError, setSubmitError] = React.useState<string | null>(null);
6060

61-
// Read DataSource from context so field widgets (e.g. LookupField) can
62-
// dynamically load related records without an explicit dataSource prop.
61+
// Read DataSource from SchemaRendererContext and propagate it to field
62+
// widgets as a prop so they can dynamically load related records.
6363
const schemaCtx = React.useContext(SchemaRendererContext);
6464
const contextDataSource = schemaCtx?.dataSource ?? null;
6565

0 commit comments

Comments
 (0)