Devographics / Devographics/Monorepo

Find a way to delete invalid field from the response in case of error

Open
#280 3 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.