vue-analysis
vue-analysis copied to clipboard
:thumbsup: Vue.js 源码分析
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
计算属性的最终的值 不变时 也是会重新渲染的 依赖的值发生了变化就会dep.notify() computed watcher将dirty置为true 渲染watcher还是会执行 不是说这是个优化吗 为什么又去掉了?
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4. Commits ebdf849 1.3.4 ac57872 move all allocUnsafes to allocs for easier maintenance c64c950 1.3.3 0598ba1 fix .. in encodingLength 010aedb 1.3.2 0d0d593 backport encodingLength...
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.7.1 to 4.16.6. Changelog Sourced from browserslist's changelog. 4.16.6 Fixed npm-shrinkwrap.json support in --update-db (by Geoff Newman). 4.16.5 Fixed unsafe RegExp (by Yeting Li). 4.16.4 Fixed unsafe...
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.0 to 6.5.4. Commits 43ac7f2 6.5.4 f4bc72b package: bump deps 441b742 ec: validate that a point before deriving keys e71b2d9 lib: relint using eslint 8421a01 build(deps): bump...
最近经常在看这个文档,由于computed的代码还不是最新的,所以替换成了最新的代码。文档内容也就有了变化,根据自己的理解做出了文档修改。
根据尤雨溪的注释,好像是因为重新绘制之前更改状态时出现问题并且在事件处理程序中使用(宏)任务会导致一些奇怪的行为,所以还是改回之前的将micro task拆分在各处使用,文章的解析说的microTimerFunc与macroTimerFunc变量的定义在源码没找到了
计算属性 a(){ const b = this.b; return 1; } 逻辑上a对b是没有依赖关系的, 但是Vue能分辨吗? getter执行时一样会进入b的getter并添加依赖呀. Vue内部有这部分处理的相关代码吗?