@medplum/react 2.2.7 → 2.2.10

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.
@@ -514,7 +514,9 @@ export declare interface EncounterTimelineProps {
514
514
  export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
515
515
  state: ErrorBoundaryState;
516
516
  constructor(props: ErrorBoundaryProps);
517
- static getDerivedStateFromError(error: any): ErrorBoundaryState;
517
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
518
+ componentDidUpdate(_prevProps: Readonly<ErrorBoundaryProps>, _prevState: Readonly<ErrorBoundaryState>): void;
519
+ shouldComponentUpdate(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>): boolean;
518
520
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
519
521
  render(): ReactNode;
520
522
  }
@@ -524,7 +526,8 @@ export declare interface ErrorBoundaryProps {
524
526
  }
525
527
 
526
528
  export declare interface ErrorBoundaryState {
527
- error?: any;
529
+ error?: Error;
530
+ lastLocation: string;
528
531
  }
529
532
 
530
533
  /**
@@ -514,7 +514,9 @@ export declare interface EncounterTimelineProps {
514
514
  export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
515
515
  state: ErrorBoundaryState;
516
516
  constructor(props: ErrorBoundaryProps);
517
- static getDerivedStateFromError(error: any): ErrorBoundaryState;
517
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
518
+ componentDidUpdate(_prevProps: Readonly<ErrorBoundaryProps>, _prevState: Readonly<ErrorBoundaryState>): void;
519
+ shouldComponentUpdate(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>): boolean;
518
520
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
519
521
  render(): ReactNode;
520
522
  }
@@ -524,7 +526,8 @@ export declare interface ErrorBoundaryProps {
524
526
  }
525
527
 
526
528
  export declare interface ErrorBoundaryState {
527
- error?: any;
529
+ error?: Error;
530
+ lastLocation: string;
528
531
  }
529
532
 
530
533
  /**