@tanstack/store
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -23,8 +23,6 @@ class Store { | ||
this._flush = () => { | ||
if (this._batching) | ||
return; | ||
if (this._batching) return; | ||
const flushId = ++this._flushing; | ||
this.listeners.forEach((listener) => { | ||
if (this._flushing !== flushId) | ||
return; | ||
if (this._flushing !== flushId) return; | ||
listener(); | ||
@@ -34,4 +32,3 @@ }); | ||
this.batch = (cb) => { | ||
if (this._batching) | ||
return cb(); | ||
if (this._batching) return cb(); | ||
this._batching = true; | ||
@@ -38,0 +35,0 @@ cb(); |
{ | ||
"name": "@tanstack/store", | ||
"author": "Tanner Linsley", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "tanstack/store", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15166
224