Skip to content

refactor: Add remember memoization to validation schemas in example app#16

Merged
piashcse merged 1 commit into
piashcse:mainfrom
easyhooon:main
Oct 16, 2025
Merged

refactor: Add remember memoization to validation schemas in example app#16
piashcse merged 1 commit into
piashcse:mainfrom
easyhooon:main

Conversation

@easyhooon

Copy link
Copy Markdown
Contributor
  • Wrap all Zod schema definitions with remember to prevent unnecessary recreation
  • Applied to string, number, boolean, literal, enum, array, union, tuple, record, nullable, transform, refine, and default schemas
  • Improves performance by caching schema instances across recompositions

- Wrap all Zod schema definitions with remember to prevent unnecessary recreation
- Applied to string, number, boolean, literal, enum, array, union, tuple, record, nullable, transform, refine, and default schemas
- Improves performance by caching schema instances across recompositions
@piashcse piashcse merged commit 967a910 into piashcse:main Oct 16, 2025
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.

2 participants