Skip to content

Commit 33f1a43

Browse files
janechuCopilot
andcommitted
docs: clarify deterministic transform ordering
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2369257 commit 33f1a43

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

packages/fast-element/DECLARATIVE_DESIGN.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ attribute-map.ts ──imports──▶ schema.ts (Schema types)
227227
utilities.ts ──imports──▶ schema.ts (schemaRegistry for cross-element $ref resolution)
228228
```
229229

230-
Schema transforms are sorted by priority and insertion order. `attributeMap()`
231-
uses a higher-priority slot than `observerMap()`, so generated attributes are
232-
available before observer mapping runs.
230+
Schema transforms run in deterministic order. `attributeMap()` runs before
231+
`observerMap()`, so generated attributes are available to observer mapping.
233232

234233
---
235234

@@ -537,8 +536,8 @@ accessed via bracket notation (e.g. `element["foo-bar"]`). When using
537536
`"camelCase"`, property names are standard JS identifiers (e.g.
538537
`element.fooBar`).
539538

540-
Because schema transforms are priority sorted, attribute mapping runs before observer
541-
mapping when both extensions are supplied.
539+
Schema transforms run in deterministic order. When both extensions are supplied,
540+
attribute mapping runs before observer mapping.
542541

543542
---
544543

0 commit comments

Comments
 (0)