question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resolver args for form rules or FormProvider rules

See original GitHub issue

I can’t find it in the documentation but it’s possible somehow provide to the Form rules or to FormProvider the same resolver args to the rules?

So the resolver function will return the same parameters (not only value but even fieldProps, fields, form) as for the field resolver the https://redd.gitbook.io/react-advanced-form/components/field/props/rule#resolver-function ?

I need to make a dependant/smart async rules for application wide forms and don’t want to write a specific rule for my every input in the app.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jetpack3331commented, Jun 18, 2019

@kettanaito yeah. I mapped it to the <Form rules={...} /> Thx!

0reactions
kettanaitocommented, Jun 17, 2019

Please, @jetpack3331, have my suggestions helped to resolve your issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolvers - Apollo GraphQL Docs
A resolver can optionally accept four positional arguments: (parent, args, ... Because of this rule, whenever Apollo Server resolves a field that returns...
Read more >
TS Support | React Hook Form - Simple React forms validation
Performant, flexible and extensible forms with easy-to-use validation.
Read more >
How to use "resolver" on useForm together with "rules" on ...
Hi all, I am wrapping 3d party library controls with react-hook-form API ("useController"). What is the best practice for validation?
Read more >
rule - React Advanced Form - GitBook
A synchronous rule applied to the field as the top priority validation. When the rule rejects, all the remaining validation chain is ignored....
Read more >
React Hook Form: A guide with examples - LogRocket Blog
Learn all about using forms in React with React Hook Form, including how to create and validate forms — even with third-party components....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found