Skip to content

Commit 279faaa

Browse files
TkDodoTMaszko
andauthored
Update src/createAsyncStoragePersistor-experimental/index.ts
Co-authored-by: Tomasz Krzyżowski <t.krzyzowski96@gmail.com>
1 parent f53d7c2 commit 279faaa

File tree

1 file changed

+1
-1
lines changed
  • src/createAsyncStoragePersistor-experimental

1 file changed

+1
-1
lines changed

src/createAsyncStoragePersistor-experimental/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function asyncThrottle<T>(
4848
const queue: Array<any[]> = []
4949
return (...args: any) =>
5050
(async () => {
51-
if (running) {
51+
if (running.current) {
5252
lastTime = Date.now()
5353
if (queue.length > limit) {
5454
queue.shift()

0 commit comments

Comments
 (0)