diff --git a/package.json b/package.json index 7bc250cc..f2ea08d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hazae41/xswr", - "version": "1.0.41", + "version": "1.0.42", "author": "hazae41", "license": "MIT", "description": "The simplest React data (re)fetching library ever made", diff --git a/src/mods/core.ts b/src/mods/core.ts index bedeb7e8..5be01bf9 100644 --- a/src/mods/core.ts +++ b/src/mods/core.ts @@ -257,7 +257,7 @@ export class Core extends Ortho { subscribe( key: string | undefined, listener: (x: State) => void, - params: Params = {} + _: Params = {} ) { if (!key) return @@ -291,7 +291,7 @@ export class Core extends Ortho { this.counts.delete(key) - const current = await this.get(key) + const current = await this.get(key, params) if (current?.expiration === undefined) return if (current?.expiration === -1) return @@ -302,7 +302,7 @@ export class Core extends Ortho { if (count !== undefined) return this.timeouts.delete(key) - await this.delete(key) + await this.delete(key, params) } if (Date.now() > current.expiration) {