-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
idea3: atomFamily supports instanceof #2681
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. |
Preview in LiveCodesLatest commit: cb641c8
See documentations for usage instructions. |
449d8df
to
c1110ef
Compare
c1110ef
to
db757dd
Compare
I don't think this complexity and the trick should be added in this util. |
db757dd
to
cb641c8
Compare
If we were to go this road, I think I'd prefer adding |
Related Bug Reports or Discussions
idea1: #2678
idea2: #2679
Fixes #
jotaijs/jotai-scope#50
Summary
jotai-scope is trying to support scoping atomFamily.
This PR demonstrates one approach in which the atomFamily supports use of instanceof language feature.
The following pseudo code represents logic that would live in jotai-scope.
Check List
pnpm run prettier
for formatting code and docs