Skip to content

Conversation

@vbin-dev
Copy link

@vbin-dev vbin-dev commented Nov 11, 2025

When running a large number of validators (e.g., ~370 items), synchronous or deeply nested validators can cause a "Maximum call stack size exceeded" error due to recursive callback chaining.

This PR wraps the recursive next call in queueMicrotask to break the call stack, ensuring safe serial execution without changing the API or behavior.

Fixes Issuse: RangeError: Maximum call stack size exceeded (爆栈问题) #106

@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2025

⚠️ No Changeset found

Latest commit: 888dbf2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

1 participant