Skip to content

[Bug]: useForm在多步骤表单中loading不变且onSuccess多次触发 #435

Open
@JOU-amjs

Description

@JOU-amjs

这是否是一个 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReactIssues or pull request for Reactbug:confirmedSomething isn't workinglang:chineseThis issue uses Chinese

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions