infiniteloading 组件 #11
yangxiaolu1993
started this conversation in
General
Replies: 0 comments 3 replies
-
@yangxiaolu1993 |
Beta Was this translation helpful? Give feedback.
0 replies
-
为何直接测试的demo都无法正常载入组件,而且一直没有解决 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1、组件内定义的 className 值未使用 BEM 规范
2、代码73行: 使用 useEffect 挂载 scroll 事件时,为什么设置 hasMore, isInfiniting 更新时触发?
useEffect(() => { const parentElement = getParentElement(scroller.current as HTMLDivElement) as Node & ParentNode scrollEl.current = useWindow ? window : parentElement scrollEl.current.addEventListener('scroll', handleScroll, useCapture) return () => { scrollEl.current.removeEventListener('scroll', handleScroll, useCapture) } }, [hasMore, isInfiniting])
3、 需要支持 className 与 style
Beta Was this translation helpful? Give feedback.
All reactions