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

renderTracking #8

Open
ryuever opened this issue Sep 1, 2020 · 0 comments
Open

renderTracking #8

ryuever opened this issue Sep 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ryuever
Copy link
Member

ryuever commented Sep 1, 2020

背景

Halation最需要解决的问题是,让组件的加载和渲染可控;所以为了达到这个目前,对于渲染的tracking是一个必须要提供的机制;它所要解决的是下面几个问题

  1. 对于框架本身提供的一些生命周期基础上的叠加,比如module的mount时间(可以在Halation侧进行监控,主要是用在dev中)
  2. 用户自定义的渲染阶段;这个需要注意如何联动module的动态加载

渲染阶段的收集

渲染阶段的收集主要体现在两个地方

  1. 比如在某一个节点,通过调用dispatchEvent的方式将信息输出
  2. 某一个阶段是很多个组件共同作用的结果,比如只有当一定的组件渲染结束了才表示某一个阶段结束

问题点

  1. 当一个阶段是多个组件渲染态的集合时,在什么节点进行收集以及在什么节点进行判断处理

实现

目前的实现层面会主要参考react-tracking的书写方式,它是The New York Times前端团队在进行打点层面提供的解决方案;

@ryuever ryuever added the enhancement New feature or request label Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant