A more useful return for the exposed function `submit` of UForm
Open
Nobody has claimed this yet.
triage
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.1k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 57
Description
Package
v4.x
Description
I think it would be good if the exposed function submit would return true/false instead of void
I currently use the following workaround:
() => {
form.value?.submit()
return v.safeParse(schema, state).success
}
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the UForm component’s exposed submit entry point and its current validation behavior. Trace how success and failure are represented, then inspect any existing UForm tests; done means submit consistently returns true or false with coverage for both outcomes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100