@tanstack/store
Advanced tools
@@ -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 @@ }; |
+1
-1
| { | ||
| "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", |
+2
-6
@@ -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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
87644
-0.75%1234
-0.96%