75team / anu Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rubylouvre/anu
the React16-compat library with hooks
Home Page: https://rubylouvre.github.io/anu/
License: Apache License 2.0
This project forked from rubylouvre/anu
the React16-compat library with hooks
Home Page: https://rubylouvre.github.io/anu/
License: Apache License 2.0
中文输入法的情况下在 onKeyDown 回调中 setState() 会导致 input 更新异常
https://code.h5jun.com/leke/edit?html,js,output
bug描述
useEffect
destroy
应该在依赖改变后先于下一次的create
执行。 当前依赖改变后会先执行所有上一次的destroy
,再执行依赖改变的create
bug描述
useEffect
destroy
应该在依赖改变后先于下一次的create
执行。 当前依赖改变后会先执行所有上一次的destroy
,再执行依赖改变的create
bug描述
当非HostComponent
触发更新, commit
阶段insertElement
方法中,如果是如下结构:
<div>
<List/>
<p>我是谁不重要,关键是占了个位置</p>
</div>
由于after
为p
对应DOM,会进入如下逻辑并返回,所以不会造成DOM更新
if (after === null && dom === parent.lastChild) {
return;
}
但当是如下结构时会进入insertBefore
造成List对应DOM原地插入。
<div>
<List/>
</div>
为了解决这个bug,增加如下跳出条件:
// 如果目标dom的nextSibling和他已经存在的after相同,则跳出
if (dom.nextSibling && dom.nextSibling === after) {
return;
}
bug描述
使用驼峰的形式设置WebkitLineClamp
属性无效
复现bug的步骤
Demo
如题,期待ing
React.Fragment
插入的数据,在后续的重绘中可能会导致 diff 插入有问题,具体 DEMO 可见 https://codesandbox.io/s/anujs-react-fragment-daozhi-diff-cuoluanwenti-f66xx
先点击 Append 按钮,再点击 onClick 按钮可复现问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.