Skip to content
Source
Sign inSign up
TanStack/store

fix(react): date compare in shallow equal function #164

MergedSashaZel(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/164/headmerged by crutchcorn(GitHub profile, opens in a new tab)

    1. Nice! This is a great fix. Can we apply the same fix to the other frameworks with similar shallow methods?

    2. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit f1f0c42584fd859e0c8479f899b04fce06bfdf7a

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

      ☁️ Nx Cloud last updated this comment at 2025-07-06 22:14:30 UTC

    3. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      @tanstack/angular-store

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

      @tanstack/react-store

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

      @tanstack/solid-store

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

      @tanstack/store

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

      @tanstack/svelte-store

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

      @tanstack/vue-store

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

      commit: f1f0c42

    4. Nice! This is a great fix. Can we apply the same fix to the other frameworks with similar shallow methods?

      Hi, Done.

    5. @crutchcorn any chance this can be merged?

    6. @@ -61,3 +61,6 @@
      6161 return true
      6262 }
      6363
      64+ if (objA instanceof Date && objB instanceof Date) {
      65+ if (objA.getTime() !== objB.getTime()) return false
      66+ return true

      nit: how about just return objA.getTime() === objB.getTime()?

    7. danielepintore(GitHub profile, opens in a new tab)commented

      Hello, any updates on this? @lachlancollins

    8. Friendly bump, also interested in this. There is any need to work before it gets merged?

    9. Sorry for the delay folks! Thanks for being patient and let us know if there's any issues like this in the future.

Sign in to join this conversation.