home.social

#jotai — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #jotai, aggregated by home.social.

fetched live
  1. #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 ➜ bit.ly/4yIvKy9

    #React #WebDevelopment #InfoQ

  2. 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 ➜ bit.ly/4yIvKy9

  3. Подходы к state management в React

    У React-разработчика две беды: 1. Целевые данные изменились, а ререндера нет. 2. Целевые данные не изменились, а ререндер есть. Есть много вариантов подружить данные с интерфейсом, в рамках данной статьи я пройдусь по самым популярным из них. Выясним, как они устроены и для чего каждый из них подойдет лучше, обсудим конкретные реализации разных паттернов.

    habr.com/ru/articles/984424/

    #React #redux #zustand #mobx #valtio #jotai #state_management

  4. Как создавали Jotai

    Устали использовать Redux / Zustand / Jotai как чёрный ящик? Хотите наконец понять, что за магия там под капотом? Мне самому надоело вайбкодить синтаксис Redux-like библиотек. Пора уже понять чё за зверь такой – state manager. Это заняло у меня несколько месяцев, и сейчас пройдём этот путь вместе. Буквально изобретём концепцию Jotai за семь дней.

    habr.com/ru/articles/967748/

    #reactjs #хуки #jotai

  5. 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.

    #frontend

  6. 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.

    #frontend

  7. 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.

    #frontend #react

  8. 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.

    #frontend #react

  9. 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 👉 daishikato.com

  10. 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 👉 daishikato.com

    #ReactJS #React #JavaScript #TypeScript #Zustand #Jotai #Valtio

  11. Check out our new kid in the Jotai ecosystem: jotai-history.

    Give it a try and share your feedback!

    github.com/jotaijs/jotai-histo

  12. 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 👉 github.com/jotaijs/jotai-zusta
    Demo 👉 stackblitz.com/github/jotaijs/

  13. 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 👉 github.com/jotaijs/jotai-zusta
    Demo 👉 stackblitz.com/github/jotaijs/

    #ReactJS #React #JavaScript #TypeScript #Jotai #Zustand

  14. Hi, can anyone, who is familiar with functional programming, read, review and share your feedback please?

    jotai.org/docs/basics/function

  15. Just released jotai-suspense v0.4.0! github.com/jotaijs/jotai-suspe

    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.

  16. Just released jotai-suspense v0.4.0! github.com/jotaijs/jotai-suspe

    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.

    #ReactJS #React #JavaScript #TypeScript #Jotai

  17. 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.

    Repo: github.com/jotaijs/jotai-ssr

  18. 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.

    Repo: github.com/jotaijs/jotai-ssr

    #ReactJS #React #JavaScript #TypeScript #Jotai

  19. ⭐️ Jotai jotai.org has reached 18k stars on GitHub! Huge thanks to our amazing community for all the support. Let's keep improving it together!

  20. ⭐️ Jotai jotai.org has reached 18k stars on GitHub! Huge thanks to our amazing community for all the support. Let's keep improving it together!

    #ReactJS #React #JavaScript #TypeScript #Jotai

  21. 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.

    github.com/jotaijs/jotai-scope

  22. 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.

    github.com/jotaijs/jotai-scope

    #ReactJS #React #JavaScript #TypeScript #Jotai

  23. 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?

    github.com/jotaijs/jotai-xstate

  24. 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?

    github.com/jotaijs/jotai-xstat

    #ReactJS #React #JavaScript #TypeScript #Jotai #XState

  25. 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`.

    github.com/jotaijs/jotai-game

  26. 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`.

    github.com/jotaijs/jotai-game

    #ReactJS #React #JavaScript #TypeScript #Jotai

  27. 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.)

  28. 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.)

    #ReactJS #React #JavaScript #TypeScript #Jotai #Signals

  29. 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. 😉

    github.com/jotaijs/jotai-zusta

  30. 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. 😉

    github.com/jotaijs/jotai-zusta

    #ReactJS #React #JavaScript #TypeScript #Jotai #Zustand

  31. 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.

    github.com/jotaijs/jotai-xstate

  32. 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.

    github.com/jotaijs/jotai-xstat

    #ReactJS #React #JavaScript #TypeScript #Jotai

  33. 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: github.com/jotaijs/jotai-valtio
    Docs: jotai.org/docs/integrations/va 👻💊

  34. 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: github.com/jotaijs/jotai-valti
    Docs: jotai.org/docs/integrations/va 👻💊

    #ReactJS #React #JavaScript #TypeScript #Jotai #Valtio

  35. 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!

    github.com/jotaijs/jotai-trpc

  36. 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!

    github.com/jotaijs/jotai-trpc

    #ReactJS #React #JavaScript #TypeScript #Jotai

  37. 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 👉 github.com/jotaijs/jotai-suspe
    Demo 👉 stackblitz.com/github/jotaijs/

  38. 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 👉 github.com/jotaijs/jotai-suspe
    Demo 👉 stackblitz.com/github/jotaijs/

    #ReactJS #React #JavaScript #TypeScript #Jotai

  39. 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.

    github.com/jotaijs/jotai-signal

  40. 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.

    github.com/jotaijs/jotai-signa

    #ReactJS #React #JavaScript #TypeScript #Jotai

  41. 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. 😝

    github.com/jotaijs/jotai-redux

  42. 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. 😝

    github.com/jotaijs/jotai-redux

    #ReactJS #React #JavaScript #TypeScript #Jotai #Redux

  43. 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.

    github.com/jotaijs/jotai-recoil

  44. 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.

    github.com/jotaijs/jotai-recoi

    #ReactJS #React #JavaScript #TypeScript #Jotai

  45. 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.
    github.com/jotaijs/jotai-optics

  46. 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.
    github.com/jotaijs/jotai-optic

    #ReactJS #React #JavaScript #TypeScript #Jotai

  47. 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. github.com/jotaijs/jotai-immer

  48. 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. github.com/jotaijs/jotai-immer

    #ReactJS #React #JavaScript #TypeScript #Jotai #Immer

  49. Found an interesting thread. reddit.com/r/reactjs/comments/

    Some people say Zustand is more intuitive and some other people say Jotai is more intuitive. I think that fact validates both exist.

  50. Found an interesting thread. reddit.com/r/reactjs/comments/

    Some people say Zustand is more intuitive and some other people say Jotai is more intuitive. I think that fact validates both exist.

    #ReactJS #React #JavaScript #TypeScript #Zustand #Jotai