← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Jotai v2.20 Released with Reworked Internal Store Building Blocks for Performance

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Jotai v2.20.0 improves performance in high-throughput scenarios.
  • Internal store building blocks were reworked, replacing WeakMap usage.
  • The update sets the stage for Jotai v3 development.
  • The everyday API for developers remains unchanged.

Jotai v2.20.0 Focuses on Performance

Jotai, the atomic state management library for React, has released version 2.20.0. This update primarily targets performance improvements in high-throughput scenarios by modifying the library's internal store building blocks. Core contributor David Maskasky is credited with key internal changes, including avoiding the getInternalBuildingBlock function, refining type narrowing for onMount hooks, and implementing lazy hooks in ensureAtomState for new atom states.

Addressing a Performance Regression

The changes in v2.20.0 resolve a performance regression that emerged after v2.12.0, which introduced the concept of building blocks to allow ecosystem libraries to extend Jotai's core. This flexibility, while making the API robust, led to a performance issue due to the use of WeakMap. The current fix replaces the WeakMap approach by passing parameters directly, which resolved the performance bottleneck.

Impact on Developers and Future Plans

For most developers, the everyday API of Jotai remains unchanged, meaning the process of creating and using a store is identical to previous versions. The breaking changes are limited to the internal building blocks used by library authors. This release is considered the final step before serious development begins on Jotai v3. The jotai-devtools library has already updated to v0.14.0 to support INTERNAL_buildStoreRev3, and the atomFamily feature is deprecated in favor of the jotai-family package ahead of v3.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~39 min · 35 stories · Jul 22

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Jotai, a React state management library, released version 2.20.0, which focuses on improving performance in high-throughput scenarios by reworking its internal store building blocks. This update addresses a performance regression introduced in earlier versions and prepares the library for a future v3 release.