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]: useForm在多步骤表单中loading不变且onSuccess多次触发 #435

Open
2 tasks done
JOU-amjs opened this issue Jul 3, 2024 · 1 comment
Open
2 tasks done
Labels
bug:confirmed Something isn't working lang:chinese This issue uses Chinese React Issues or pull request for React

Comments

@JOU-amjs
Copy link
Contributor

JOU-amjs commented Jul 3, 2024

这是否是一个 Bug?

  • 我已经确认我要报告的是一个 Bug

这个问题是否已经存在?

  • 我已经确认这个 Issue 没有被报告过

Alova 版本

3.0.0-beta.9

前端框架

React

问题描述

如题,截图如下:
image

期望的表现

  1. 调用send时loading可以正常切换
  2. onSuccess绑定一次的情况下只触发一次

复现链接

https://github.com/alovajs/alova/blob/chore/demo/examples/react/src/views/FormHook/MultiForm.jsx

复现步骤

  1. pnpm --filter=react-demo run dev启动demo项目
  2. 访问http://localhost:5173/?path=other%20strategies.form_hook
  3. 在multiple form中框中正常填写数据和提交表单,可见控制台打印以下内容

image

系统信息

No response

补充说明

No response

@JOU-amjs JOU-amjs added bug:need-confirm It's probably a bug lang:chinese This issue uses Chinese labels Jul 3, 2024
@github-actions github-actions bot added the React Issues or pull request for React label Jul 3, 2024
@JOU-amjs JOU-amjs added bug:confirmed Something isn't working and removed bug:need-confirm It's probably a bug labels Jul 7, 2024
@Bob0411
Copy link

Bob0411 commented Oct 31, 2024

我在公司项目中使用alova的多步骤表单,发现页面有缓存,也出现onSuccess多次触发的bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:confirmed Something isn't working lang:chinese This issue uses Chinese React Issues or pull request for React
Projects
None yet
Development

No branches or pull requests

3 participants