Hankai Xia

Results 11 issues of Hankai Xia

Checklist: - [x] I have read [freeCodeCamp's contribution guidelines](https://contribute.freecodecamp.org). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request...

status: waiting review
platform: client

## Describe the bug `task.once` is invalid in `client/src/templates/Challenges/utils/worker-executor.js`. ## To Reproduce 1. add a test in `client/src/templates/Challenges/utils/worker-executor.test.js` ```js it('Task should emit handler once', () => { mockWorker(); const testWorker...

# 问题 响应式中考虑如下的 case,为何可能会陷入死循环,以及如何解决? ```js it('should avoid implicit infinite recursive loops with itself', () => { const counter = reactive({ num: 0 }) effect(() => counter.num++) expect(counter.num).toBe(1) }) ``` #...

reactivity

# 问题 说一说 Vue3 中编译优化方面的 *静态提升* 是什么?以及为什么使用 *静态提升* 可以编译优化? 该问题可能引申自: > Vue3 中有哪些 编译优化 手段? # 分析 案例来自于《Vuejs 设计与实现》 假如有如下 template 1: ```html static text {{ message}} ``` 以及如下的 template...

compiler-core
runtime-core
performance

# 问题 手撕最长递增子序列以及 vue3 里的实现 # 前言 此处不讨论到 vue3 的 快速 diff 算法,只要记住三个步骤,顺着思路展开细节即可: 1. 双端预处理 2. 理想状态(新旧节点序列总有一个被处理掉) - 根据剩下的那个序列做 *新增* 或 *移除* 3. 非理想状态(中间对比),只要记住两点: - 如何*找到*需要移动的节点以及如何*移动* - *找到*需要被添加或移除的节点并做对应操作 具体的设计思路可以去参考 HCY...

vue3 diff
runtime-core

# 问题 parser 如何处理 `` 的 edge case? # 前言 如 HcySunYang 所说 > 当用户没有以预期的方式使用框架时,是否应该打印合适的警告信息从而提供更好的开发体验,让用户快速定位问题? # 死循环分析 我们考虑 isEnd 的条件如下: ```typescript function isEnd(context: any, parentTag) { // 结束标签 if (parentTag...

compiler-core
edge cases

![image](https://user-images.githubusercontent.com/8510146/167079713-aa67c6fc-b3e7-4c3f-8f82-6a63380b0065.png) “在该函数内”的“该”字有字体错误

已确认
已在七印中修正

Fix link in the README-zh_CN.md otherwise we will get 404

## Enhancements and Features - [x] Check that the enhancement is not already [in our issue tracker](https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+org%3Alibrariesio), they should be labelled 'enhancement'., - [x] For large feature requests, check that...

Checklist: - [x] I have read [freeCodeCamp's contribution guidelines](https://contribute.freecodecamp.org). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request...

scope: tools/scripts
status: merge conflict