xujintai

Results 4 issues of xujintai

Please make sure these boxes are checked before submitting your PR, thank you! * [x] Make sure you follow Element's contributing guide ([中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | [English](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.en-US.md) | [Español](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.es.md) | [Français](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.fr-FR.md)). *...

请问这里减去prevCount的含义是什么,方便解答下吗 ![image](https://user-images.githubusercontent.com/66779465/232420191-e8eaec0c-7d19-4ece-90e5-28ce207c0d62.png)

## 疑问点截图1 ## 疑问点截图2 ### 请问updateComponent这个方法是想表示源码中渲染wathcer传入的回调吗(‘vue/src/core/instance/lifecycle.js’) ### 如果这个例子是参考vue的实现逻辑,那我觉得这里的描述感觉不太恰当。当数据发生改变,会触发数据收集的渲染watcher进行update。(代码如下) ### 而例子中data.ok和data.text所收集的渲染watcher都是new Watcher(updateComponent); watcher的id自然也是相同的,我们再看queueWatcher方法 (‘vue/src/core/observer/scheduler.js’)(代码如下) ### data.ok先setter,queue中存入了渲染watcher(new Watcher(updateComponent));就算data.text的dep没有清除此渲染watcher,在data.text值改变到最终调用queueWatcher方法时,由于has[id]为true,也并不会再往queue中重复添加渲染watcher,因此也是只调用了一次updateComponent。所以`此时 data.text 修改的话就不会再执行 updateComponent 了,因为第二次执行的时候,我们把 data.text 中 Dep 里的 Watcher 清除了`的表述不太恰当。我理解你所表达的data.text的watcher会被清除,但就算是data.text的watcher不被清除,updateComponent也是只调用一次。因此updateComponent只调用一次的关键点在于has[id]的判断。

**issue:** on 4.17.1 version,the type of the data variable is inferred to never by _.has。 ![image](https://github.com/DefinitelyTyped/DefinitelyTyped/assets/66779465/44a910ef-4096-4c5f-82f8-4fd03c8e4cd5) **source of problem:** https://github.com/DefinitelyTyped/DefinitelyTyped/pull/69291 https://github.com/DefinitelyTyped/DefinitelyTyped/commit/1c01676bd56522b1eb13f7e4e0a2415773c535a6#diff-0740e38db2dd38b18fb8612ceef08349585a3d898fb6ad21522819b8677804f7