#jotai — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jotai, aggregated by home.social.
-
#Jotai v2.20.0 is out, bringing performance improvements for high-throughput workloads and fixing previous regressions.
The release updates internal building blocks without changing the day-to-day API, though library authors should be aware of new deprecations as work toward Jotai v3 begins.
Read more ➜ https://bit.ly/4yIvKy9
-
#Jotai v2.20.0 is out, bringing performance improvements for high-throughput workloads and fixing previous regressions.
The release updates internal building blocks without changing the day-to-day API, though library authors should be aware of new deprecations as work toward Jotai v3 begins.
Read more ➜ https://bit.ly/4yIvKy9
-
Подходы к state management в React
У React-разработчика две беды: 1. Целевые данные изменились, а ререндера нет. 2. Целевые данные не изменились, а ререндер есть. Есть много вариантов подружить данные с интерфейсом, в рамках данной статьи я пройдусь по самым популярным из них. Выясним, как они устроены и для чего каждый из них подойдет лучше, обсудим конкретные реализации разных паттернов.
https://habr.com/ru/articles/984424/
#React #redux #zustand #mobx #valtio #jotai #state_management
-
Как создавали Jotai
Устали использовать Redux / Zustand / Jotai как чёрный ящик? Хотите наконец понять, что за магия там под капотом? Мне самому надоело вайбкодить синтаксис Redux-like библиотек. Пора уже понять чё за зверь такой – state manager. Это заняло у меня несколько месяцев, и сейчас пройдём этот путь вместе. Буквально изобретём концепцию Jotai за семь дней.
-
After spending the whole day reversing @sitnik_en's logux, I finally figured out how they solve the problem of the log store. They don’t, lol. There are some mentions of Redis in the commercial version, though.
I spent a bit too much time on this project; will have to wrap the story up soon. The TL;DR insofar was that #Jotai is a more straightforward state management than #nanostores and is **by far** better documented. It's easy to get up and running, easy to scale. It fits the medium-sized scope better than Valtio (just as I thought). It feels somewhat close to ClojureScript state management, which I still find ideal.
Having an app with shared state and local state is a pain either way. You can’t easily make Loro, Jotai, and React friends. You’ll make sacrifices. In the end, the reasonable approach seems to be to batch local changes in, e.g. Jotai and sync them up to Loro. I didn’t try Automerge yet, but both are Rust WASM. Loro has some very readable source code (I might be biased towards Rust, but Logux is hard to follow), though.
Aaaand there goes my weekend. I should totally get back into ZFS poking; all this frontend mess makes me crave the sanity of good old C.
-
After spending the whole day reversing @sitnik_en's logux, I finally figured out how they solve the problem of the log store. They don’t, lol. There are some mentions of Redis in the commercial version, though.
I spent a bit too much time on this project; will have to wrap the story up soon. The TL;DR insofar was that #Jotai is a more straightforward state management than #nanostores and is **by far** better documented. It's easy to get up and running, easy to scale. It fits the medium-sized scope better than Valtio (just as I thought). It feels somewhat close to ClojureScript state management, which I still find ideal.
Having an app with shared state and local state is a pain either way. You can’t easily make Loro, Jotai, and React friends. You’ll make sacrifices. In the end, the reasonable approach seems to be to batch local changes in, e.g. Jotai and sync them up to Loro. I didn’t try Automerge yet, but both are Rust WASM. Loro has some very readable source code (I might be biased towards Rust, but Logux is hard to follow), though.
Aaaand there goes my weekend. I should totally get back into ZFS poking; all this frontend mess makes me crave the sanity of good old C.
-
I’ve reached enough complexity in my hobby app where valtio becomes a liability. Having a single global mutating state felt weird and yeah, it scales weird. The question is, of course, what lesson did I learn?
Probably that cljs had extremely good solutions when it came to state management.
Either way, I’m eyeing #nanostores and #jotai now.
-
I’ve reached enough complexity in my hobby app where valtio becomes a liability. Having a single global mutating state felt weird and yeah, it scales weird. The question is, of course, what lesson did I learn?
Probably that cljs had extremely good solutions when it came to state management.
Either way, I’m eyeing #nanostores and #jotai now.
-
【図解解説/入門】ReactとJotaiを使って実用的なNotion風ノートアプリを開発するチュートリアル【Convex/TypeScript/MDXEditor】
https://qiita.com/Sicut_study/items/ee41f1bb59fcda45a50b?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items -
2025年のReact状態管理、正直どれがいいの? - Zustand, Jotai, Redux, Recoil, Valtio, XState, TanStack Query をざっくり解説
https://qiita.com/suin/items/e2df562b0c2be7e2a123?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items -
Did you know I previously wrote a book about Zustand, Jotai, and Valtio? I think the content is still relevant (at least until the React Compiler lands 🙃).
In case you missed it, you can find the link on my site 👉 https://daishikato.com
#ReactJS #React #JavaScript #TypeScript #Zustand #Jotai #Valtio
-
Did you know I previously wrote a book about Zustand, Jotai, and Valtio? I think the content is still relevant (at least until the React Compiler lands 🙃).
In case you missed it, you can find the link on my site 👉 https://daishikato.com
#ReactJS #React #JavaScript #TypeScript #Zustand #Jotai #Valtio
-
Check out our new kid in the Jotai ecosystem: jotai-history.
Give it a try and share your feedback!
-
Check out our new kid in the Jotai ecosystem: jotai-history.
Give it a try and share your feedback!
-
Zustand seems more popular than Jotai right now. So, I experimented with creating a Zustand-flavored wrapper around Jotai. If I can get some feedback from this, I’d consider it a success!
GitHub 👉 https://github.com/jotaijs/jotai-zustand
Demo 👉 https://stackblitz.com/github/jotaijs/jotai-zustand/tree/main/examples/02_create?file=src%2Fapp.tsx -
Zustand seems more popular than Jotai right now. So, I experimented with creating a Zustand-flavored wrapper around Jotai. If I can get some feedback from this, I’d consider it a success!
GitHub 👉 https://github.com/jotaijs/jotai-zustand
Demo 👉 https://stackblitz.com/github/jotaijs/jotai-zustand/tree/main/examples/02_create?file=src%2Fapp.tsx -
Hi, can anyone, who is familiar with functional programming, read, review and share your feedback please?
https://jotai.org/docs/basics/functional-programming-and-jotai
-
Hi, can anyone, who is familiar with functional programming, read, review and share your feedback please?
https://jotai.org/docs/basics/functional-programming-and-jotai
-
Just released jotai-suspense v0.4.0! https://github.com/jotaijs/jotai-suspense
This version includes `useAtomValue` hook. The name is the same as the one in `jotai`, but unlike the original one, this doesn't resolve promises. You need to explicitly use React 19 `use` hook or `react18-use` lib.
-
Just released jotai-suspense v0.4.0! https://github.com/jotaijs/jotai-suspense
This version includes `useAtomValue` hook. The name is the same as the one in `jotai`, but unlike the original one, this doesn't resolve promises. You need to explicitly use React 19 `use` hook or `react18-use` lib.
-
Have you experienced hydration errors with @JotaiJS and @NextJS?
We have a new library to tackle the SSR integration with Jotai. Please give your feedback.
-
Have you experienced hydration errors with @JotaiJS and @NextJS?
We have a new library to tackle the SSR integration with Jotai. Please give your feedback.
-
⭐️ Jotai https://jotai.org has reached 18k stars on GitHub! Huge thanks to our amazing community for all the support. Let's keep improving it together!
-
⭐️ Jotai https://jotai.org has reached 18k stars on GitHub! Huge thanks to our amazing community for all the support. Let's keep improving it together!
-
Just published a new blog post!
How Jotai Was Born
Is it just an alternative to Recoil? -
Just published a new blog post!
How Jotai Was Born
Is it just an alternative to Recoil? -
jotai-scope v0.7.0 has been released! I started it as a proof-of-concept project, but it now has two maintainers and this version is more stable than ever!
ScopeProvider is used to scope atoms. It's a capability often requested by Jotai users.
-
jotai-scope v0.7.0 has been released! I started it as a proof-of-concept project, but it now has two maintainers and this version is more stable than ever!
ScopeProvider is used to scope atoms. It's a capability often requested by Jotai users.
-
jotai-xstate v0.5.0 has been released! It finally migrates to XState V5. Huge thanks to the contributors!
Now, we may need to update the docs and examples. Would anyone like to volunteer?
-
jotai-xstate v0.5.0 has been released! It finally migrates to XState V5. Huge thanks to the contributors!
Now, we may need to update the docs and examples. Would anyone like to volunteer?
-
Jotai is basically modeled after useState, which is reactive. However, you might want to read atom values without being reactive, like in a game app.
Just released jotai-game v0.2.0, an experimental library providing `useTransientAtom`.
-
Jotai is basically modeled after useState, which is reactive. However, you might want to read atom values without being reactive, like in a game app.
Just released jotai-game v0.2.0, an experimental library providing `useTransientAtom`.
-
There is another subtle difference between TC39 signals and Jotai atoms:
- TC39 signals are pull-based (lazy evaluation)
- Jotai atoms are a mix (but not a combination) of push and pull (For mounted atoms, eager eval; otherwise, lazy eval. This is to avoid React rerenders.) -
There is another subtle difference between TC39 signals and Jotai atoms:
- TC39 signals are pull-based (lazy evaluation)
- Jotai atoms are a mix (but not a combination) of push and pull (For mounted atoms, eager eval; otherwise, lazy eval. This is to avoid React rerenders.) -
jotai-zustand v0.4.0 has been released!
This library allows you to create a @JotaiJS atom that is connected to a Zustand store. It's introduced for global access, but as Jotai v2 has the Store API, I'm not sure of the use cases. 😉 -
jotai-zustand v0.4.0 has been released!
This library allows you to create a @JotaiJS atom that is connected to a Zustand store. It's introduced for global access, but as Jotai v2 has the Store API, I'm not sure of the use cases. 😉 -
Just released jotai-xstate v0.4.0! This is a @JotaiJS library for XState. The atomWithMachine utility creates an atom with a machine.
Unfortunately, this version is still for XState v4. We're looking for a maintainer who can also work on migrating to v5.
-
Just released jotai-xstate v0.4.0! This is a @JotaiJS library for XState. The atomWithMachine utility creates an atom with a machine.
Unfortunately, this version is still for XState v4. We're looking for a maintainer who can also work on migrating to v5.
-
jotai-valtio v0.5.0 has been released! This library brings Valtio capabilities to Jotai atoms. It might not be widely used at the moment, but it’s an interesting bit to learn!
Repo: https://github.com/jotaijs/jotai-valtio
Docs: https://jotai.org/docs/integrations/valtio 👻💊 -
jotai-valtio v0.5.0 has been released! This library brings Valtio capabilities to Jotai atoms. It might not be widely used at the moment, but it’s an interesting bit to learn!
Repo: https://github.com/jotaijs/jotai-valtio
Docs: https://jotai.org/docs/integrations/valtio 👻💊 -
jotai-trpc v0.7.0 has been released! This is a binding library for @JotaiJS and @tRPCio. It can create an atom that connects to a vanilla tRPC client.
The implementation is just a wrapper, so it's fairly stable. Check it out!
-
jotai-trpc v0.7.0 has been released! This is a binding library for @JotaiJS and @tRPCio. It can create an atom that connects to a vanilla tRPC client.
The implementation is just a wrapper, so it's fairly stable. Check it out!
-
Just released jotai-suspense v0.3.0! This lesser-known library for @JotaiJS helps avoid suspense waterfalls. I'm wondering how to promote this library effectively.
Repo 👉 https://github.com/jotaijs/jotai-suspense
Demo 👉 https://stackblitz.com/github/jotaijs/jotai-suspense/tree/main/examples/02_comparison?file=src%2Fapp.tsx -
Just released jotai-suspense v0.3.0! This lesser-known library for @JotaiJS helps avoid suspense waterfalls. I'm wondering how to promote this library effectively.
Repo 👉 https://github.com/jotaijs/jotai-suspense
Demo 👉 https://stackblitz.com/github/jotaijs/jotai-suspense/tree/main/examples/02_comparison?file=src%2Fapp.tsx -
jotai-signal v0.9.0 is here! This experimental library makes Jotai atoms feel like signals. It's not for production, but there are some interesting technical points. So, it's maintained for now.
-
jotai-signal v0.9.0 is here! This experimental library makes Jotai atoms feel like signals. It's not for production, but there are some interesting technical points. So, it's maintained for now.
-
jotai-redux v0.3.0 has been published! This library allows you to define a Jotai atom that connects to a Redux store. It's fairly stable, but my guess is that nobody uses it. 😝
-
jotai-redux v0.3.0 has been published! This library allows you to define a Jotai atom that connects to a Redux store. It's fairly stable, but my guess is that nobody uses it. 😝
-
jotai-recoil v0.2.0 has been released! This library allows you to create Jotai atoms connected to Recoil states. It's designed to help migrate from @RecoilJS to @JotaiJS.
-
jotai-recoil v0.2.0 has been released! This library allows you to create Jotai atoms connected to Recoil states. It's designed to help migrate from @RecoilJS to @JotaiJS.
-
jotai-optics v0.4.0 has been released! It's a binding library for Jotai and optics-ts, originally developed by merisbahti.
I'm looking for someone interested in maintaining it. Familiarity with optics-ts is important.
https://github.com/jotaijs/jotai-optics -
jotai-optics v0.4.0 has been released! It's a binding library for Jotai and optics-ts, originally developed by merisbahti.
I'm looking for someone interested in maintaining it. Familiarity with optics-ts is important.
https://github.com/jotaijs/jotai-optics -
Just released jotai-immer v0.4.0! This library lets you define Jotai atoms with Immer.
I'm looking for a collaborator to help maintain this library. Let me know if you're interested, especially if you use it in production. https://github.com/jotaijs/jotai-immer
-
Just released jotai-immer v0.4.0! This library lets you define Jotai atoms with Immer.
I'm looking for a collaborator to help maintain this library. Let me know if you're interested, especially if you use it in production. https://github.com/jotaijs/jotai-immer
-
Found an interesting thread. https://www.reddit.com/r/reactjs/comments/1ctsnov/why_choose_zustand_over_jotai/
Some people say Zustand is more intuitive and some other people say Jotai is more intuitive. I think that fact validates both exist.
-
Found an interesting thread. https://www.reddit.com/r/reactjs/comments/1ctsnov/why_choose_zustand_over_jotai/
Some people say Zustand is more intuitive and some other people say Jotai is more intuitive. I think that fact validates both exist.