You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@tanstack/store

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/store - npm Package Compare versions

Comparing version
0.7.6
to
0.7.7
+2
-6
dist/cjs/derived.cjs

@@ -29,8 +29,4 @@ "use strict";

this.prevState = this.state;
const { prevDepVals, currDepVals, prevVal } = this.getDepVals();
this.state = this.options.fn({
prevDepVals,
currDepVals,
prevVal
});
const depVals = this.getDepVals();
this.state = this.options.fn(depVals);
(_b = (_a = this.options).onUpdate) == null ? void 0 : _b.call(_a);

@@ -37,0 +33,0 @@ };

@@ -27,8 +27,4 @@ import { Store } from "./store.js";

this.prevState = this.state;
const { prevDepVals, currDepVals, prevVal } = this.getDepVals();
this.state = this.options.fn({
prevDepVals,
currDepVals,
prevVal
});
const depVals = this.getDepVals();
this.state = this.options.fn(depVals);
(_b = (_a = this.options).onUpdate) == null ? void 0 : _b.call(_a);

@@ -35,0 +31,0 @@ };

{
"name": "@tanstack/store",
"version": "0.7.6",
"version": "0.7.7",
"description": "Framework agnostic type-safe store w/ reactive framework adapters",

@@ -5,0 +5,0 @@ "author": "Tanner Linsley",

@@ -156,8 +156,4 @@ import { Store } from './store'

this.prevState = this.state
const { prevDepVals, currDepVals, prevVal } = this.getDepVals()
this.state = this.options.fn({
prevDepVals: prevDepVals as never,
currDepVals: currDepVals as never,
prevVal,
})
const depVals = this.getDepVals()
this.state = this.options.fn(depVals as never)

@@ -164,0 +160,0 @@ this.options.onUpdate?.()

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet