Skip to content

feat(react): lift array add/remove state out of the replaceable root (#145) - #151

Merged
timkindberg merged 1 commit into
feat/144-recipes-defaultsfrom
feat/145-array-templates
Aug 16, 2026
Merged

feat(react): lift array add/remove state out of the replaceable root (#145)#151
timkindberg merged 1 commit into
feat/144-recipes-defaultsfrom
feat/145-array-templates

Conversation

@timkindberg

@timkindberg timkindberg commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #145 (child of #141). Stacks on #150. Related to #111.

defaults.array.root can arrange like a group (Label + {children} + AddButton) without wrapping <Default />. Add/remove state lives in a provider around the template, so replacing root doesn't kill Add. Item chrome is defaults.arrayItem.

Engine children are still just the seed items; the provider passes the live slot list as children. No Core change.

Agent did the grind.

Test plan

  • Default arrays still add/remove, dense re-path, keep typed values
  • Custom array.root that places Label + children + AddButton still has working Add/Remove
  • Replacing defaults.array.root does not lose Add
  • CI green

Stack created with GitHub Stacks CLI

@timkindberg timkindberg changed the title feat/145 array templates feat(react): lift array add/remove state out of the replaceable root (#145) Aug 14, 2026
@timkindberg
timkindberg force-pushed the feat/145-array-templates branch from c68fcba to ad24b6d Compare August 15, 2026 18:50
@timkindberg
timkindberg force-pushed the feat/145-array-templates branch from ad24b6d to afe28d1 Compare August 15, 2026 20:25
@timkindberg
timkindberg force-pushed the feat/145-array-templates branch from afe28d1 to fd97a7e Compare August 15, 2026 20:30
@timkindberg
timkindberg merged commit 396bf28 into main Aug 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array templates: lift ArrayRoot state and promote array parts

1 participant