Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jotai.Atom.makeWritableOnly #2

Open
gaku-sei opened this issue Jan 13, 2021 · 0 comments
Open

Add Jotai.Atom.makeWritableOnly #2

gaku-sei opened this issue Jan 13, 2021 · 0 comments

Comments

@gaku-sei
Copy link
Owner

gaku-sei commented Jan 13, 2021

https://github.com/pmndrs/jotai#writeonlyatoms

Map the following pattern:

const decrementCountAtom = atom(
  null,
 (get, set, _arg) => set(countAtom, get(countAtom) - 1),
)
@gaku-sei gaku-sei changed the title Add derivedWritableAtom Add Jotai.Atom.makeWritableDerived Feb 19, 2021
@gaku-sei gaku-sei changed the title Add Jotai.Atom.makeWritableDerived Add Jotai.Atom.makeWriteable Feb 19, 2021
@gaku-sei gaku-sei changed the title Add Jotai.Atom.makeWriteable Add Jotai.Atom.makeWriteableOnly Feb 19, 2021
@gaku-sei gaku-sei changed the title Add Jotai.Atom.makeWriteableOnly Add Jotai.Atom.makeWritableOnly Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant