Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useInfiniteScroll reload 重置问题 #2507

Open
secret821 opened this issue Mar 28, 2024 · 3 comments
Open

useInfiniteScroll reload 重置问题 #2507

secret821 opened this issue Mar 28, 2024 · 3 comments

Comments

@secret821
Copy link

useInfiniteScroll 滑动到第二页之后 再筛选 使用reload方法 出现 page没有重置为1 会先请求了page1之后 还会请求page2

@hua-bang
Copy link

useInfiniteScroll 滑动到第二页之后 再筛选 使用reload方法 出现 page没有重置为1 会先请求了page1之后 还会请求page2

hi, @secret821 根据你的描述,我去找了 ahooks 官网示范, 但没有复现 page 没有重置为 1 的情况。

这边方便的话了,可以提供一个可以复现的链接不。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。

@crazylxr crazylxr added the 🤔 Need Reproduce We cannot reproduce your problem label Apr 2, 2024
Copy link

github-actions bot commented Apr 2, 2024

Hello @secret821. Please provide a online reproduction by forking this link https://codesandbox.io/s/ok2fe or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @secret821, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

@secret821
Copy link
Author

useInfiniteScroll 滑动到第二页之后 再筛选 使用reload方法 出现 page没有重置为1 会先请求了page1之后 还会请求page2

hi, @secret821 根据你的描述,我去找了 ahooks 官网示范, 但没有复现 page 没有重置为 1 的情况。

这边方便的话了,可以提供一个可以复现的链接不。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。

https://codesandbox.io/p/sandbox/default-usage-forked-h7lvjk?file=%2FApp.tsx%3A12%2C2 大致的代码

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2024
@liuyib liuyib reopened this Apr 7, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
@liuyib liuyib removed the 🤔 Need Reproduce We cannot reproduce your problem label Apr 11, 2024
@liuyib liuyib reopened this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants