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

🐛 [Bug]: List组件请求多次接口 #720

Open
2 tasks
leecn-web opened this issue May 16, 2024 · 1 comment
Open
2 tasks

🐛 [Bug]: List组件请求多次接口 #720

leecn-web opened this issue May 16, 2024 · 1 comment

Comments

@leecn-web
Copy link

Which React Vant packages are impacted?

  • react-vant (React Vant core)
  • react-vant-icons(React Vant Icon)

What version of React Vant are you using?

3.3.4

Reproduce live demo(codesandebox or stackblitz)?

No response

Descripition

20240516164025.webm
@leecn-web
Copy link
Author

这个是使用state控制的finished, 然后effect监听输入框的value值去onRefresh, 这种操作会导致第一次也会请求两次接口 需要像其他useRequest一样加一个manual(是否默认执行一次load操作)

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

1 participant