@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
@@ -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
|
-
|
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({});
|