alibaba/hooks

useInfiniteScroll 在第一次请求还未返回时,快速切换到其他组件,会造成无限循环的请求

Open

#2.579 geöffnet am 25. Juni 2024

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (12.849 Stars) (2.471 Forks)batch import
help wanted

Beschreibung

image 此处会默认执行一次setTimeout,触发函数scrollMethod,当页面被销毁时,判断条件将永久成立,会一直触发loadMore

Contributor Guide