mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 23:16:51 +00:00
performance
This commit is contained in:
@@ -42,10 +42,10 @@ const BlogPostListScroll = ({ posts = [], currentSearch, showSummary = CONFIG_MA
|
||||
|
||||
// 监听滚动
|
||||
React.useEffect(() => {
|
||||
window.addEventListener('scroll', scrollTrigger)
|
||||
return () => {
|
||||
window.removeEventListener('scroll', scrollTrigger)
|
||||
}
|
||||
// window.addEventListener('scroll', scrollTrigger)
|
||||
// return () => {
|
||||
// window.removeEventListener('scroll', scrollTrigger)
|
||||
// }
|
||||
})
|
||||
|
||||
const targetRef = React.useRef(null)
|
||||
|
||||
Reference in New Issue
Block a user