-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
chore(docs): show only npm install #2325
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3c34bfb:
|
@@ -109,6 +107,8 @@ const Controls = () => { | |||
|
|||
It would be better if you don't use `withImmer` and `atomWithImmer` with `useImmerAtom` because they provide the immer-like `writeFunction` and we don't need to create a new one. | |||
|
|||
You can use `useSetImmerAtom` if you need only the setter part of `useImmerAtom`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New feature in jotai-immer v0.3.0.
Size Change: 0 B Total Size: 68.7 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everyone should understand that dependencies can be installed "with your preferred package manager" so I think those lines can be omitted. 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some document support select from multiple package managers as preferences.
This might be another idea but spends extra work
Well, that's different from my motivation. (But I'll consider such alternatives if this confuses people too much.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🙂
It's 2024, and we can't list all npm alternatives. Let's simplify.