From cd0e73384b0cf07da32ff708c48a3978d8a29877 Mon Sep 17 00:00:00 2001 From: Garvish Panchal Date: Wed, 8 Jul 2026 21:02:11 +0530 Subject: [PATCH] docs: update DataSources examples to dataResolver format Component-level data-variable props moved into the dataResolver object in #6495, but the docs still showed the old flat shape, which now fails silently (no render, no updates on record change). Style and trait data variables keep the flat shape, so those examples are left untouched. --- docs/modules/DataSources.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/modules/DataSources.md b/docs/modules/DataSources.md index aaec2243c3..188f86b4e0 100644 --- a/docs/modules/DataSources.md +++ b/docs/modules/DataSources.md @@ -52,8 +52,10 @@ editor.addComponents([ components: [ { type: 'data-variable', - defaultValue: 'default', - path: 'my-datasource.id1.content', + dataResolver: { + defaultValue: 'default', + path: 'my-datasource.id1.content', + }, }, ], }, @@ -76,8 +78,10 @@ editor.addComponents([ components: [ { type: 'data-variable', - defaultValue: 'default', - path: 'my-datasource.id1.content', + dataResolver: { + defaultValue: 'default', + path: 'my-datasource.id1.content', + }, }, ], style: { @@ -261,8 +265,10 @@ editor.addComponents([ components: [ { type: 'data-variable', - defaultValue: 'default', - path: 'my-datasource.id1.counter', + dataResolver: { + defaultValue: 'default', + path: 'my-datasource.id1.counter', + }, }, ], },