feat(core): compose effect collections

Support Vec<T: IntoEffect> and [T; N] batches so dynamic reusable partial updates compose inside the existing effect model without a broad IntoIterator blanket impl.

req: canonical_authoring/003
This commit is contained in:
slhx agent
2026-06-12 14:36:58 +02:00
parent f343e8aaee
commit 8f96169b03
5 changed files with 44 additions and 3 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ For beginner and production-shaped app code, stay on this path. req: public_api/
also carries the stable row key. A list target inside `h-for` must have a
stable `h-key`, so row updates are addressable without CSS selectors. req: list/001
- **Effect:** handlers return typed commands that become a checked effect
response. Tuple composition is the normal batch syntax.
response. Tuple composition is the normal fixed batch syntax; arrays and
`Vec<T: IntoEffect>` cover fixed or dynamic repeated partial updates.
- **Runtime:** the browser checks the build fingerprint, resolves targets within
the current `data-hemx-root`, and applies compatible batches. Mismatched
server/runtime builds fail closed instead of silently mutating the wrong DOM.