diff --git a/packages/query-core/src/queryCache.ts b/packages/query-core/src/queryCache.ts index 5222b2793b..8f637e0a39 100644 --- a/packages/query-core/src/queryCache.ts +++ b/packages/query-core/src/queryCache.ts @@ -197,7 +197,7 @@ export class QueryCache extends Subscribable { : queries } - notify(event: QueryCacheNotifyEvent) { + notify(event: QueryCacheNotifyEvent): void { notifyManager.batch(() => { this.listeners.forEach((listener) => { listener(event)