Skip to content
Source
Sign inSign up
TanStack/store

fix: ensure mutable atoms ignore internal no-arg updates #289

Mergeddavidkpiano(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/289/headmerged by KevinVandy

🎯 Changes

Fix a regression where mutable atoms could be updated internally with no updater and have their snapshot replaced with undefined.

Mutable atoms now ignore internal no-argument _update() calls, while computed atoms keep existing recomputation behavior. This prevents external-store state from disappearing during reactive graph cleanup.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 743d06de0c5776736274a03686d6e0799c94cd54

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded43sView ↗
      nx run-many --target=build --exclude=examples/**✅ Succeeded17sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-03-06 21:05:44 UTC

    2. @tanstack/angular-store

      npm i https://pkg.pr.new/@tanstack/angular-store@289

      @tanstack/preact-store

      npm i https://pkg.pr.new/@tanstack/preact-store@289

      @tanstack/react-store

      npm i https://pkg.pr.new/@tanstack/react-store@289

      @tanstack/solid-store

      npm i https://pkg.pr.new/@tanstack/solid-store@289

      @tanstack/store

      npm i https://pkg.pr.new/@tanstack/store@289

      @tanstack/svelte-store

      npm i https://pkg.pr.new/@tanstack/svelte-store@289

      @tanstack/vue-store

      npm i https://pkg.pr.new/@tanstack/vue-store@289

      commit: fe118fa

    3. KevinVandy approved these changes

    4. KevinVandy merged this84dc3eb

    5. KevinVandy closed this

Sign in to join this conversation.