Skip to content

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

Open
@liujf-frontEnd

Description

@liujf-frontEnd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions