From 9422fb2b86a4aeaeb1eedbff1f7d17454eaa63ab Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Mon, 8 Feb 2021 13:17:33 +0200 Subject: [PATCH] feat: add staleTime to react query. --- client/package.json | 1 + client/src/components/App.js | 1 + 2 files changed, 2 insertions(+) diff --git a/client/package.json b/client/package.json index 59cd4cede..77cc1fb6e 100644 --- a/client/package.json +++ b/client/package.json @@ -89,6 +89,7 @@ "react-table-sticky": "^1.1.2", "react-transition-group": "^4.4.1", "react-use": "^13.26.1", + "react-use-context-menu": "^0.1.4", "react-virtualized": "^9.22.3", "redux": "^4.0.5", "redux-persist": "^6.0.0", diff --git a/client/src/components/App.js b/client/src/components/App.js index 435d11a9b..438b0c41d 100644 --- a/client/src/components/App.js +++ b/client/src/components/App.js @@ -18,6 +18,7 @@ function App({ locale }) { defaultOptions: { queries: { refetchOnWindowFocus: false, + staleTime: 30000, }, }, };