@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Version:
An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop
17 lines (16 loc) • 472 B
TypeScript
import React, { type ReactElement } from 'react';
import type { DragController } from './types';
type ErrorBoundaryProps = {
children: ReactElement;
contextId: string;
dragController: DragController;
};
/**
* Cancels drags when errors occur.
*/
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
componentDidCatch(err: Error): void;
static getDerivedStateFromError(): void;
render(): React.JSX.Element;
}
export {};