alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.32k stars 1.48k forks source link

fix: baseReaction 初始化执行两次的问题 #4080

Closed unclechong closed 1 month ago

unclechong commented 8 months ago

patchSchemaCompile 收集了 field.initialized field在初始化结束后会标记 field.initialized = true 所以 base reacttion 全部都会执行两次

修复:field.initialized 丢在 untracked 中,不在进行收集

Before submitting a pull request, please make sure the following is done...

Please do not delete the above content


What have you changed?

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3fa68e6) 99.55% compared to head (dc2cfa0) 99.55%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## formily_next #4080 +/- ## ============================================= Coverage 99.55% 99.55% ============================================= Files 152 152 Lines 6720 6721 +1 Branches 1822 1822 ============================================= + Hits 6690 6691 +1 Misses 30 30 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

yiyunwan commented 1 month ago

这样会导致内部patchStateFormSchema 内部也不收集了