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

How to pass external form instance to StepsFormComponent? (It seems not working) #8791

Open
wtcodeai opened this issue Oct 15, 2024 · 0 comments

Comments

@wtcodeai
Copy link

wtcodeai commented Oct 15, 2024

🧐 问题描述

Trying to pass form instance returned by useForm hook to StepsForm component.
According to this comment StepsForm should support external instance, but it's don't.

(pro-components v2.7.9)

🚑 其他信息

image Neither type suggest (prop in StepsForm interface) and instance not working. Here i want to watch props in all steps with Form.useWatch, but I cant cause when using useFormInstance hook in nested steps - parent StepsForm dont know about steps states. Also form prop in FormStep (not Steps) is not declared in interface, but working
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