Replies: 10 comments 24 replies
-
|
Perhaps consider adding aliases for the
Benefits:
|
Beta Was this translation helpful? Give feedback.
-
|
How about:
|
Beta Was this translation helpful? Give feedback.
-
|
What about reducing the coupling with react? It's an optional dep already, what about taking a step further and extracting the react-specific logic into a separate package? It might pave a path for the other framework integrations to follow. BTW, are there any plans to start advertising jotai as a multi-framework solution? Are there any react/Suspense-specific hacks in the core logic now? I've seen Vue integration discussed in #1811, however the 3rd-party package mentioned there jotai-vue seems dead |
Beta Was this translation helpful? Give feedback.
-
|
I'm not sure on feasibility but being able to have some When a value can be explicitly checked on a specific event call (like form state on onSubmit) it would be really nice & beneficial because you wouldn't have to subscribe the parent to the state at all. |
Beta Was this translation helpful? Give feedback.
-
If remove the |
Beta Was this translation helpful? Give feedback.
-
|
https://react.dev/blog/2025/04/23/react-labs-view-transitions-activity-and-more#concurrent-stores |
Beta Was this translation helpful? Give feedback.
-
BTW |
Beta Was this translation helpful? Give feedback.
-
|
For
The first one seems simple implementation-wise, but I'm not sure of the implications. Use cases are a bit niche, but it might be reasonable band-aid in some cases. Second one less so. Basically, I just want to avoid re-renders, but having to write tons of Any thoughts? Does this make any sense? |
Beta Was this translation helpful? Give feedback.
-
Currently, both For now, I reimplemented
Since jotai-eager's |
Beta Was this translation helpful? Give feedback.
-
|
Regarding dropping CJS - I don't think this should even be a question. 99,9999% of Jotai users are using some kind of bundler, all of which support ESM just fine. The remaining 0,0001% would be users using pure ESM modules, in which case... Well... They're using ESM modules :D |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Nothing determined. ETA is year 2026.
Plan for v3
usein useAtomValue (migration path: add{ use: true }option which istrueby default in v2, and warns it)atomFamilyutil tojotai-familypackage (deprecate it during v2)Not sure
delayoption in useAtomValue (deprecate it during v2)unwraputil (migration path: recommendloadableorjotai-derive)setSelfoption if.unstable_onInitcan replace all utils, and "actions in value" patternINTERNAL_overrideCreateStoreif jotai-devtools can have a good DX without it.Not for v3
.onMountifwithMountutil works in v2signaloption ifwithSignalutil works in v2Beta Was this translation helpful? Give feedback.
All reactions