Skip to content

feat(examples): move form recipes off r.control onto defaults (#144) - #150

Merged
timkindberg merged 6 commits into
feat/143-intercept-sugarfrom
feat/144-recipes-defaults
Aug 16, 2026
Merged

feat(examples): move form recipes off r.control onto defaults (#144)#150
timkindberg merged 6 commits into
feat/143-intercept-sugarfrom
feat/144-recipes-defaults

Conversation

@timkindberg

@timkindberg timkindberg commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #144 (child of #141). Stacks on #149.

Recipes were injecting via r.control, which is a winning intercept, so a path Extra dropped error wiring. Native / RHF / TanStack (and App_09/11/13) now pass defaults to useFormTree({ defaults }).

injectFieldErrors wraps the previous nativeDefaults.field.root so we don't infinite-loop <Default />. Form-lib wiring lives on defaults.field.control with a kind switch. Proof test: path Extra keeps aria-invalid.

Agent did the grind.

Test plan

  • Recipes no longer call useRenderNodeRules / r.control
  • Path intercept Extra on a field still shows recipe errors + a11y
  • Parity matrix still green (native / RHF / TanStack × JSON Schema / Zod)
  • CI green

Stack created with GitHub Stacks CLI

@timkindberg timkindberg changed the title feat/144 recipes defaults feat(examples): move form recipes off r.control onto defaults (#144) Aug 14, 2026
Comment thread examples/basic-react/src/nativeFieldControls.recipe.tsx
Comment thread examples/basic-react/src/Recipe_TanStackForm_Zod.tsx Outdated
Comment thread packages/react/src/renderer.tsx Outdated
Comment thread examples/basic-react/src/nativeFieldControls.recipe.tsx
Comment thread examples/basic-react/src/rhfFieldControls.recipe.tsx
timkindberg and others added 5 commits August 15, 2026 16:25
Co-authored-by: Cursor <cursoragent@cursor.com>
…on (#144)

Co-authored-by: Cursor <cursoragent@cursor.com>
…() (#144)

Co-authored-by: Cursor <cursoragent@cursor.com>
@timkindberg
timkindberg force-pushed the feat/144-recipes-defaults branch from dad1114 to cabbec3 Compare August 15, 2026 20:25
Co-authored-by: Cursor <cursoragent@cursor.com>
@timkindberg
timkindberg merged commit afedad8 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.

Move form recipes off r.control onto defaults

1 participant