unstale

npm / valtio

valtio

What changed in valtio 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

6 breaking2 deprecations1 new APIs and options1 behavior and defaults1 tooling2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

valtio 213 changes

Breaking changes 6

  • The ops callback is disabled by default; call unstable_enableOp(true) from valtio/vanilla to keep the previous behavior.

    2.3.0release notes

  • All deprecated features have been removed.

    2.0.0upgrade guide

  • Valtio no longer handles promises internally; use React’s use hook to manage promises.

    2.0.0upgrade guiderelease notes

  • proxy(obj) deeply modifies the supplied object instead of deeply copying it; use deepClone when you need to reuse the original object.

    2.0.0upgrade guide

  • React 18 or later is required.

    2.0.0upgrade guide

  • TypeScript 4.5 or later is required.

    2.0.0upgrade guide

Deprecations 2

New APIs and options 1

Behavior and default changes 1

  • useSnapshot is less optimized for compatibility with useMemo and the upcoming React compiler, and may cause extra re-renders in some edge cases.

    2.0.0upgrade guide

Tooling 1

Fixes and other changes 2

  • Removed from createSnapshotDefault for Hermes compatibility in React Native.

    2.3.2release notes

  • Reverted the change made in v2.2.0 that seemed to cause a problem in an edge case.

    2.3.1release notes