Devographics / Devographics/Monorepo
Find a way to delete invalid field from the response in case of error
- Dominant language
- TypeScript
- Stars
- 178
- Forks
- 55
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
When a field produces invalid data, this will trigger a validation error with zod.
THe problem is that it can sometimes only be fixed by removing the response.
Instead we could:
- access the error data in the input component
- if the error matches the input path, add a button to totally delete the value
- perhaps do that in an ErrorBoundary too if the input totally fails
It can happen during development when we change a data type, or when the API has changed, when a template is missing etc.
and I've seen this bug in prod too so catching this kind of error would be nice.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.