@panneau/medias 3.0.269 → 3.0.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/es/index.js +4 -6
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -1080,7 +1080,10 @@ function MediasBrowser(_ref) {
1080
1080
  setShowTrashed = _useState4[1];
1081
1081
  var _useMedias = useMedias$1(query, page, count, {
1082
1082
  items: baseItems,
1083
- trashed: showTrashed
1083
+ trashed: showTrashed,
1084
+ queryConfig: {
1085
+ staleTime: 0
1086
+ }
1084
1087
  }),
1085
1088
  items = _useMedias.items,
1086
1089
  allItems = _useMedias.allItems,
@@ -1257,11 +1260,6 @@ function MediasBrowser(_ref) {
1257
1260
  }
1258
1261
  return partialFilters;
1259
1262
  }, [filters, types, withTrash, showTrashed, uploadProcessing, onClickTrash]);
1260
-
1261
- // dirty fix to bypass global query caching
1262
- useEffect(function () {
1263
- reload();
1264
- }, [finalFilters, showTrashed]);
1265
1263
  var partialColumns = useMemo(function () {
1266
1264
  return withTrash && showTrashed ? (columns || []).map(function (column) {
1267
1265
  var _ref10 = column || {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/medias",
3
- "version": "3.0.269",
3
+ "version": "3.0.270",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "061323455e951d332cc8ab25d4831a97dbcebdad"
77
+ "gitHead": "216374919ca3acd5c9d1f7cc98cd626f631af8e0"
78
78
  }