@fto-consult/expo-ui 2.26.6 → 2.26.8

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": "2.26.6",
3
+ "version": "2.26.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2712,7 +2712,7 @@ export default class CommonDatagridComponent extends AppComponent {
2712
2712
  return false;
2713
2713
  }
2714
2714
  UNSAFE_componentWillReceiveProps(nextProps){
2715
- if(!isObjOrArray(nextProps.data) || nextProps.data == this.props.data || stableHash(nextProps.data) == stableHash(this.props.data)) {
2715
+ if(Object.size(nextProps.data) === Object.size(this.props.data) && (nextProps.data == this.props.data || stableHash(nextProps.data) === stableHash(this.props.data))) {
2716
2716
  if( typeof this.props.isLoading=='boolean' && nextProps.isLoading !== this.props.isLoading && typeof nextProps.isLoading =='boolean'){
2717
2717
  this.setIsLoading(nextProps.isLoading)
2718
2718
  }
@@ -205,7 +205,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
205
205
  },[isValidating,isLoading])
206
206
  const doRefresh = (showProgress)=>{
207
207
  showProgressRef.current = showProgress ? typeof showProgress ==='boolean' : false;
208
- if(isFetchingRef.current) return;
208
+ //if(isFetchingRef.current) return;
209
209
  refreshCBRef.current = ()=>{
210
210
  //showProgressRef.current = false;
211
211
  };