useForm itemProps doesn't seem to work well with the storeValue prop
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start by reproducing the interaction between useForm().itemProps, Form.Checkbox, and the storeValue prop shown in the issue. Trace how itemProps supplies the checkbox value and define the useForm API behavior needed so storeValue works without setting value={undefined}; done means the workaround is no longer required.
Written by the indexing model from the issue text.
Description
Maybe I'm overlooking something, but I'm having to explicitly do the following to get storeValue working in combination with the useForm().itemProps. It would be rad if this could be worked into the useForm API so that it's not necessary!
<Form.Checkbox
label="Copilot"
storeValue
{...itemProps.copilot}
// force this to be an uncontrolled input
// so the stored value is respected
value={undefined}
/>
- Dominant language
- TypeScript
- Stars
- 85
- Forks
- 18
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from raycast/utils
-
useFrecencySorting ignores how long ago an item was visited when sortingPossibly taken @auraseb claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Feature_Request: OAuthService refreshToken support extra queryMay be free again @thomaslombart claimed this 888 days ago, and no pull request is open. Open
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ccch1mneyyy/dsh-TUI#1631 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MiniMax-AI/minimax-code#507 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Transient OAuth login failure persists in getLoginStatus and masks active account in dashboardMay be free again A pull request for this issue was closed without being merged. Openaccount-pool bug gui
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
lidge-jun/opencodex#7378 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day