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: fix the issues of defining id for the array items #169

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

MrWindlike
Copy link
Collaborator

@MrWindlike MrWindlike commented Sep 25, 2024

resolveSubFields 中当对象值改变的时候,也需要为它付上原来的 id ,防止生成新的 id。

setField 时需要给赋值所在路径上所遍历的所有对象附上原来的 id,而不只是当前设置值的字段

@tanbowensg tanbowensg merged commit 72019a3 into feat/0.4.x Nov 7, 2024
@tanbowensg tanbowensg deleted the fix/array-id branch November 7, 2024 05:34
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