Closed janryWang closed 9 months ago
Size Change: +76 B (0%)
Total Size: 516 kB
Filename | Size | Change |
---|---|---|
packages/react/dist/formily.react.umd.development.js |
6.55 kB | +40 B (+1%) |
packages/react/dist/formily.react.umd.production.js |
3.91 kB | +36 B (+1%) |
All modified lines are covered by tests :white_check_mark:
Comparison is base (
2fc23dd
) 99.55% compared to head (e892102
) 99.55%. Report is 2 commits behind head on formily_next.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Before submitting a pull request, please make sure the following is done...
master
orformily_next
.npm test
).npm run lint
) - we've done our best to make sure these rules match our internal linting guidelines.Please do not delete the above content
What have you changed?
当初为了修复 https://github.com/alibaba/formily/pull/3284 这个问题的原因主要是 StrictMode 场景下,form 组件被卸载,导致很多响应器被销毁,所以优化了一下 useAttach 逻辑,但这里的副作用是 useAttach 内部存在异步逻辑,对于 field 内部的渲染场景,会触发时序问题,还是得用最原始的 useEffect 实现才行
Fixed #3941