-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Separate error states per tab, clear errors when clicking around #52
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
Conversation
|
Would be great to include screenshots of whats going on in the PR. |
|
This is a bugfix for #40. A recording would just show how it should've behaved all along |
dsp-ant
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not gonna pretend i a understand what's going on.
| } else { | ||
| setErrors((prev) => ({ ...prev, [tabKey]: (e as Error).message })); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we have a clearErrors would it make sense to have a setError that takes a specific tab key and sets the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would only be used in this and clearError, whereas the latter gets used in many more places. I'd prefer to keep it to this for now.
|
Added a video to the PR description |
CleanShot.2024-11-12.at.15.40.40.mp4