alibaba / alibaba/formily

[Feature Request] formily vue版本,当vue组件内存没释放干净,导致field对象会一直存在内存。操作多了内存溢出问题。 #4340

Open
#4,341 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/alibaba/formily/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
这是使用@formily/element FormItem设置了 feedbackLayout='popover' ,由于element tooltip释放不干净。单只所有field都在内存不会释放

这个是用一谷歌的内存堆。
![](https://private-user-images.githubusercontent.com/209312151/519728933-be818ff6-5741-4a78-9f15-c1f1389caa7d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjQyNDkwNDgsIm5iZiI6MTc2NDI0ODc0OCwicGF0aCI6Ii8yMDkzMTIxNTEvNTE5NzI4OTMzLWJlODE4ZmY2LTU3NDEtNGE3OC05ZjE1LWMxZjEzODljYWE3ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUxMTI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MTEyN1QxMzA1NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NzE2NzYwMmFkNjIxZjU1NjY5NGU5OTY1ZGViYzgzNjQwZGJhM2VhYTUyYzBkYzE1MjlkNWNhMTI3MTJiOTUyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.qA1EqNTs29HG_73t8f-gIrWVyqKPtFHKNTAKZY25Kck)

### What does the proposed API look like?
field自已如何释放不用管vue对象

Contributor guide

Open the contributing guide

Research direction

Reproduce the leak with @formily/element FormItem using feedbackLayout='popover', then inspect the field lifecycle and the Element tooltip interaction. Confirm completion by showing that fields and their Vue-related objects are released after repeated operations, without leaving retained objects in a Chrome memory heap snapshot.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.