Validation errors updating before action is finished running #271
Unanswered
joepetrillo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, this library is super handy and has saved me a lot of time. I appreciate how simple it is - amazing work!
I am using the validation errors on a basic form that has a redirect behavior when successful. I noticed that the validation errors are updating before the action is completed (which might be intentional?). This is under the assumption that an action is no longer pending when everything in the action has finished running. I use
isPending
on the button loading state, which you can see does not stop all the way through until the navigation, which is good! Please correct me if that is wrong.This seems to cause a minor flash of layout shift before navigating. I am trying to find a way to avoid this (unless someone can convince me that it could actually be a good thing). Any ideas? I attached a video to show the behavior.
error-layout-shift.mov
Beta Was this translation helpful? Give feedback.
All reactions