form-atoms / form-atoms

Atomic form primitives for Jotai

Home Page:https://codesandbox.io/s/getting-started-with-form-atoms-v2-ddhgq2?file=/src/App.tsx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v2

jaredLunde opened this issue ยท comments

  • Use the Jotai v2 API
    • Replace scope with store and context
    • await get()
    • initialValues={[[countAtom, 1]]} is replaced by createStore() and store.set()
    • Maybe do something with abort signals
  • Create a useInputFieldAtom() hook, remove props from useFieldAtom()
    #18 (comment)
  • Maybe add form-atoms/zod validator
    #17 (comment)
    • For consideration: #23
  • FormValues and FormErrors should infer fields from form instead of using fields as the generic
    #28
  • Fix incorrect dirty value when initialValue is used
  • Fix reset doesn't set value to the value in useFieldInitialValue
    #33
  • Fix #26
  • Update CodeSandbox examples
  • Use tsup for build step
  • Use vitest for tests
  • Pin package versions in devDependencies
  • Fix GitHub build badge
  • Remove .tsbuildinfo and types directory
  • Add prettier to eslint config instead of running them separately

Jotai will have new API from v2 so could be updated as well.

Ahhh yes thanks for the link. Definitely need to add that to the list.

Created a next prerelease branch if you want to contribute to any of the above
https://github.com/jaredLunde/form-atoms/tree/next

Awesome! Will get started on the updates

This looks amazing. Let's release!

๐ŸŽ‰ This issue has been resolved in version 2.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€