@xyo-network/react-error 4.2.3 → 4.2.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-error",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -47,9 +47,9 @@
47
47
  "@xylabs/react-button": "^5.3.2",
48
48
  "@xylabs/react-error": "^5.3.2",
49
49
  "@xylabs/react-flexbox": "^5.3.2",
50
- "@xyo-network/payload-model": "^3.3.2",
50
+ "@xyo-network/payload-model": "^3.3.3",
51
51
  "prop-types": "^15.8.1",
52
- "react-router-dom": "^6.27.0"
52
+ "react-router-dom": "^6.28.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@mui/icons-material": "^6.1.6",
@@ -29,7 +29,7 @@ class ThrownErrorBoundaryInner<T> extends Component<ThrownErrorBoundaryProps<T>,
29
29
  override state: ThrownErrorBoundaryState<T> = { errorEx: undefined }
30
30
 
31
31
  static getDerivedStateFromError<T = void>(error: ErrorEx<T>) {
32
- return { hasError: true, xyoError: this.normalizeError<T>(error) } as ThrownErrorBoundaryState<T>
32
+ return { hasError: true, xyoError: ThrownErrorBoundaryInner.normalizeError<T>(error) } as ThrownErrorBoundaryState<T>
33
33
  }
34
34
 
35
35
  static normalizeError<T>(_error: ErrorEx<T>): T {