@etsoo/react 1.3.62 → 1.3.63

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.
@@ -38,12 +38,11 @@ export function ReactAppStateDetector(props) {
38
38
  matchedFields === null || matchedFields === void 0 ? void 0 : matchedFields.push(targetField);
39
39
  });
40
40
  }
41
- console.log('ReactAppStateDetector', state, authorized, matchedFields);
42
41
  // Ready
43
42
  React.useEffect(() => {
44
43
  // Callback
45
44
  update(authorized, matchedFields);
46
- }, [authorized, matchedFields]);
45
+ }, [authorized, JSON.stringify(matchedFields !== null && matchedFields !== void 0 ? matchedFields : [])]);
47
46
  // return
48
47
  return React.createElement(React.Fragment);
49
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.3.62",
3
+ "version": "1.3.63",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -67,13 +67,11 @@ export function ReactAppStateDetector(props: IStateProps) {
67
67
  });
68
68
  }
69
69
 
70
- console.log('ReactAppStateDetector', state, authorized, matchedFields);
71
-
72
70
  // Ready
73
71
  React.useEffect(() => {
74
72
  // Callback
75
73
  update(authorized, matchedFields);
76
- }, [authorized, matchedFields]);
74
+ }, [authorized, JSON.stringify(matchedFields ?? [])]);
77
75
 
78
76
  // return
79
77
  return React.createElement(React.Fragment);