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

perf(runtime): 降低使用 react 的内存占用 #6099

Merged
merged 2 commits into from
Apr 24, 2020
Merged

Conversation

yuche
Copy link
Contributor

@yuche yuche commented Apr 24, 2020

0369c98
会在元素被从 DOM 树中清除时,同时清理它的所有子元素,以及他们的引用

97efc45
重构 react 的事件代理机制,从前使用 weakMap 实现,但由于小程序开发者工具没有可以找到对象引用关系的工具,无法定位问题。目前的实现把事件代理机制绑定到 DOM 本身,利用 TaroEventTarget 的内部对象实现。

@yuche yuche changed the title 降低使用 react 的内存占用 perf(runtime): 降低使用 react 的内存占用 Apr 24, 2020
@yuche yuche merged commit 3b4069c into next Apr 24, 2020
@yuche yuche deleted the perf/event-not-being-gc branch April 24, 2020 11:15
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.

1 participant