From f3c0ce7e56870f00a3db810f470e2c6f45a87723 Mon Sep 17 00:00:00 2001 From: Niek Date: Fri, 18 Sep 2020 08:39:20 +0200 Subject: [PATCH] fix: prevent bundlers from removing side effects --- package.json | 1 - src/core/queryCache.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/package.json b/package.json index c41e08492b..74fcafdaac 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "unpkg": "dist/react-query.development.js", "types": "types/index.d.ts", "module": "es/index.js", - "sideEffects": false, "scripts": { "test": "is-ci \"test:ci\" \"test:dev\"", "test:dev": "npm run test:types && npm run test:eslint && jest --watch", diff --git a/src/core/queryCache.ts b/src/core/queryCache.ts index f02c3232de..b3be3f9e50 100644 --- a/src/core/queryCache.ts +++ b/src/core/queryCache.ts @@ -378,9 +378,6 @@ export class QueryCache { return query.fetch(undefined, resolvedConfig) } - /** - * @deprecated - */ // Parameter syntax with optional prefetch options prefetchQuery( queryKey: QueryKey,