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.
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.
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 →
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.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
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.