Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: assign distinct initial values to both errors and warnings to prevent isEqual from encountering circular references #650

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackblackevo
Copy link

Introduce a new constant EMPTY_WARNINGS for use with warnings to avoid both errors and warnings pointing to the same array reference.

新增一個 EMPTY_WARNINGSwarnings 使用,以避免 errorswarnings 指向同一個 array reference。

fix #649

…o prevent `isEqual` from encountering circular references
Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
field-form ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 5:02pm

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.

The form.setFields is causing the warning: "Warning: There may be circular references"
1 participant