m-pull-to-refresh
m-pull-to-refresh copied to clipboard
React Mobile Pull To Refresh
 我buzh不知道现在该如何处理这个问题
是否能告知能否初始化触发加载,我尝试refreshing初始化为true,但是没有发生变化
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.14.0 to 17.0.2. Release notes Sourced from react's releases. 17.0.2 (March 22, 2021) React DOM Remove an unused dependency to address the SharedArrayBuffer cross-origin isolation warning. (@koba04...
Bumps [react-test-renderer](https://github.com/facebook/react/tree/HEAD/packages/react-test-renderer) from 15.7.0 to 17.0.2. Release notes Sourced from react-test-renderer's releases. 17.0.2 (March 22, 2021) React DOM Remove an unused dependency to address the SharedArrayBuffer cross-origin isolation warning. (@koba04...
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.14.0 to 17.0.2. Release notes Sourced from react-dom's releases. 17.0.2 (March 22, 2021) React DOM Remove an unused dependency to address the SharedArrayBuffer cross-origin isolation warning. (@koba04...
### Reproduction link [](https://codesandbox.io/s/winter-rgb-bepf4?file=/src/App.js) ### Screenshots  当更新 `refreshing` 状态小于1s时,就会出现此种状况。
issue: https://github.com/ant-design/ant-design-mobile/issues/3521
getScrollContainer不应该有默认函数,只要定义了该函数,就不需要额外渲染一个ScrollContainer了 如果用户返回一个ref,这个ref只会在ComponentDidMount时才不为undefined,导致进入了需要渲染ScrollContainer的分支,ref取到后,又进入了不需要渲染ScrollContainer的分支,这时children就被多创建了一次。 情景: * 引发了我这边一个数据问题,数据不对了; * 我这边的一些操作可能在children第一次被创建时就走过了,然后走了些异步逻辑,回来发现相关引用都变成新的了,由于二次创建又走了相关的周期覆盖了最开始的引用。这时多个异步流程链里,前面的拿的是第一次的引用,后面的拿的是第二次的引用,从而引发了一些潜在的bug 临时解法: ```js getScrollContainer={() => this.scrollViewRef || {}} ```