anu icon indicating copy to clipboard operation
anu copied to clipboard

the React16-compat library with hooks

Results 38 anu issues
Sort by recently updated
recently updated
newest added

环境:antd3.x anujs1.4.9 问题描述:点击日期文本框,选择日期,点击文本框,会出现对象null报错,具体代码为 Picker.js,196行,如下: focusCalendar: function focusCalendar() { if (this.state.open) { this.calendarInstance.focus();//此行报错,calendarInstance为null } }

第一次点击第一个 click button 为正常 第二次点击第一个 click button 后,元素错位,且生命周期错误 ``` let A = (props) => {props.a} class App extends React.Component { constructor(props) { super(props) this.state = { aaa: 'aaa', num: 0,...

感觉现在的requestIdleCallback并没有时间分片 deadline.timeRemaining() 永远大于 ENOUGH_TIME ``` // function requestIdleCallback(fn) { // fn(deadline); // } Renderer.scheduleWork = function () { // performWork(deadline); requestIdleCallback(performWork) }; ``` 我把anu里的requestIdleCallback注释掉,改为用浏览器的requestIdleCallback 再把调用performWork的代码也改了,这样行吗

![default](https://user-images.githubusercontent.com/13514094/48849385-38225a00-ede1-11e8-84e5-78b432dbf538.PNG) 是在anu-ie8-example中添加setInterval()测试结果,同样代码在原react.js不会出现内存增加问题。

当前的提交点: 33eec515c78497abc9b093187909f0914bb5ee07 这是一个可以在项目根目录中运行的示例: ```html var Example = class extends React.Component { constructor(props) { super(props); this.child = null; } componentDidMount() { console.log('height@DidMount', this.child.offsetHeight); } render() { return { dom && (this.child...

**bug描述** 描述出现的问题 **复现bug的步骤** 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **问题截图** **编译环境信息** - nanachi-cli 版本:[e.g.1.2.0] - nodejs版本、npm版本:[node v8.11.4、npm 5.6.0] - 小程序IDE...

bug

**bug描述** 描述出现的问题 **复现bug的步骤** 1.在hooks中反复切换组件,然后就会发现在ie8中所占的内存只增加不减少,ie11是没问题的。 **问题截图** **编译环境信息** **运行环境信息** ie8

bug