Skip to content

Commit 6b44cf7

Browse files
committed
Update to latest webapp-components
1 parent 3908f79 commit 6b44cf7

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@testing-library/user-event": "^12.1.10",
99
"classnames": "^2.2.6",
1010
"debug": "^4.3.1",
11-
"flight-webapp-components": "git+https://github.com/openflighthpc/flight-webapp-components#0.1.5",
11+
"flight-webapp-components": "git+https://github.com/openflighthpc/flight-webapp-components#0.1.6",
1212
"http-proxy-middleware": "^1.0.6",
1313
"react": "^17.0.1",
1414
"react-ace": "^9.4.0",

client/src/api.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import useFetch from 'use-http';
33

44
import {
55
CurrentUserContext,
6+
useClearCache,
67
utils,
78
} from 'flight-webapp-components';
89

@@ -121,16 +122,6 @@ export function useFetchScript(id) {
121122
[ currentUser.authToken ]);
122123
}
123124

124-
function useClearCache() {
125-
const { cache: memoryCache } = useFetch({ persist: false });
126-
const { cache: storageCache } = useFetch({ persist: true, cachePolicy: 'cache-first' });
127-
128-
return function() {
129-
memoryCache.clear();
130-
storageCache.clear();
131-
};
132-
}
133-
134125
function clearCacheInterceptor(clearCache) {
135126
return function({ response }) {
136127
if (response.ok) {

client/yarn.lock

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4550,9 +4550,9 @@ flatten@^1.0.2:
45504550
version "1.0.3"
45514551
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b"
45524552

4553-
"flight-webapp-components@git+https://github.com/openflighthpc/flight-webapp-components#0.1.5":
4553+
"flight-webapp-components@git+https://github.com/openflighthpc/flight-webapp-components#0.1.6":
45544554
version "0.1.5"
4555-
resolved "git+https://github.com/openflighthpc/flight-webapp-components#943814bf05bb5b704406861a101f60150aabf038"
4555+
resolved "git+https://github.com/openflighthpc/flight-webapp-components#a50571fac78ddbe8cffe2ae21fe05dfbc92d40b8"
45564556
dependencies:
45574557
classnames "^2.2.6"
45584558
js-gravatar "^1.1.3"
@@ -8170,8 +8170,8 @@ react-error-overlay@^6.0.8:
81708170
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.8.tgz#474ed11d04fc6bda3af643447d85e9127ed6b5de"
81718171

81728172
react-hook-form@^6.15.4:
8173-
version "6.15.7"
8174-
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-6.15.7.tgz#e5ad7a9f73b0311ee770c56951276a3b85b06656"
8173+
version "6.15.8"
8174+
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-6.15.8.tgz#725c139d308c431c4611e4b9d85a49f01cfc0e7a"
81758175

81768176
react-input-autosize@^3.0.0:
81778177
version "3.0.0"
@@ -8343,7 +8343,7 @@ react-transition-group@^2.3.1:
83438343
prop-types "^15.6.2"
83448344
react-lifecycles-compat "^3.0.4"
83458345

8346-
react-transition-group@^4.3.0, react-transition-group@^4.4.1:
8346+
react-transition-group@^4.3.0:
83478347
version "4.4.1"
83488348
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.1.tgz#63868f9325a38ea5ee9535d828327f85773345c9"
83498349
dependencies:
@@ -8352,6 +8352,15 @@ react-transition-group@^4.3.0, react-transition-group@^4.4.1:
83528352
loose-envify "^1.4.0"
83538353
prop-types "^15.6.2"
83548354

8355+
react-transition-group@^4.4.1:
8356+
version "4.4.2"
8357+
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.2.tgz#8b59a56f09ced7b55cbd53c36768b922890d5470"
8358+
dependencies:
8359+
"@babel/runtime" "^7.5.5"
8360+
dom-helpers "^5.0.1"
8361+
loose-envify "^1.4.0"
8362+
prop-types "^15.6.2"
8363+
83558364
react@^17.0.1:
83568365
version "17.0.1"
83578366
resolved "https://registry.yarnpkg.com/react/-/react-17.0.1.tgz#6e0600416bd57574e3f86d92edba3d9008726127"
@@ -9921,7 +9930,7 @@ urs@^0.0.8:
99219930
version "0.0.8"
99229931
resolved "https://registry.yarnpkg.com/urs/-/urs-0.0.8.tgz#8a0e0b792073cdb7eec926d08ab1e017ffab3f66"
99239932

9924-
use-http@^1.0.16:
9933+
use-http@^1.0.21:
99259934
version "1.0.21"
99269935
resolved "https://registry.yarnpkg.com/use-http/-/use-http-1.0.21.tgz#e2c3c83becf9c7afceed95e33f52b85f61993c61"
99279936
dependencies:

0 commit comments

Comments
 (0)