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

Validation don't reevaluates when a dependent state changes #33

Open
mcaballeropinto opened this issue Nov 20, 2017 · 1 comment
Open

Comments

@mcaballeropinto
Copy link

Hi there!

I have a validation for a link that uses a different state property (not the one associated to the link I'm validating). When that external state property changes, the validation doesn't rerun. This leaves the link error property in a not trustworthy state. The external state property may leave the link with an error but I won't know until the state associated with the link changes.

A workaround for this would be having a mechanism to run validation on a link manually, but I couldn't find a way to do so. Any other suggestions?

Thanks in advance!

@gaperton
Copy link

Hi. Links are meant to be immutable and to be recreated again in render(). That applies to validation as well.

It would be very helpful if you provide the code example. Looking at the example I could say something less general.

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

2 participants