@fto-consult/expo-ui 7.19.0 → 7.19.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.19.0",
3
+ "version": "7.19.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -110,8 +110,12 @@ const TableDataSelectField = React.forwardRef(({foreignKeyColumn,swrOptions,fore
110
110
  const fetchItemsRef = React.useRef(customFetchItem);
111
111
  fetchItemsRef.current = customFetchItem;
112
112
  swrOptions = Object.assign({},swrOptions);
113
- if(isFilter){
113
+ ///@see : https://swr.vercel.app/docs/revalidation#disable-automatic-revalidations
114
+ if(isFilter || isDisabled){
114
115
  swrOptions.refreshInterval = 0;
116
+ swrOptions.revalidateOnFocus = false;
117
+ swrOptions.revalidateIfStale = false;
118
+ swrOptions.revalidateOnReconnect = false;
115
119
  }
116
120
  const restOptionsRef = React.useRef({});
117
121
  const fetchedResultRef = React.useRef({});