-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Superstruct v0.10 doesn't work #16
Comments
Here is what i did: https://codesandbox.io/s/react-hook-form-v6-superstructresolver-ed67i?file=/src/App.js What's the correct usage for superstructure? i followed its doc. |
In your example the submit goes through even tho there are no values. In the Yup version if the validation fails it won't submit the form. |
In |
I think the problem is the |
oh wow, i didn't know that. We are probably supporting the old version right now. |
We will support the old version for now then until more users want us to support that latest version. |
Would love support for the latest version. 👀 |
send us a PR plz :) |
I've played around with writing a resolver for the 0.10.x version but won't completely work until this issue gets fixed. |
oh, thanks a lot @jgeschwendt 🙏 |
There is a PR open for the issue @jgeschwendt mentioned, hopefully, it will be merged soon. |
@InSuperposition the PR has been sitting there for months... |
@bluebill1049 It just got merged 🚀 |
oh wow! that's awesome, please send us a PR if you got time, otherwise, I will have a look at it over the weekend. exciting, superstruct is going to be working as well 👍 thank you for your amazing PR at superstruct. |
@bluebill1049 Awesome! I probably won't be first to making the PR though since I'm not familiar with how react-hook-form works & I haven't even used it yet lol.. But it looks awesome and I'm excited to try it next time I need a form library. Thanks for maintaining it 🤗 |
No worries @zenflow actually we probably can close this issue right? as long as the user starts to using |
@bluebill1049 No I don't think we can close this yet. I saw a lot of changes in that project recently, including renaming some of the module exports. Probably those changes still need to be integrated here. A stable v1.0 release should come soon though ianstormtaylor/superstruct#491 (comment) |
Thanks for the update. Will keep an eye on the V1 then. |
@federico-moretti @pix2D & @InSuperposition Superstruct v0.10 supported ! You can update to the latest version of |
Superstruct resolver doesn't work with the version 6.0.0, I tried the Yup resolver and it's working fine.
Steps to reproduce:
https://codesandbox.io/s/currying-fire-um7b5
PS: thank you for the amazing library and hard work.
The text was updated successfully, but these errors were encountered: