feat(onError): add onError prop #2772
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { devWarn } from '../utils';
|
||||
import { ConnectionMode } from '../types';
|
||||
import type { CoordinateExtent, ReactFlowStore } from '../types';
|
||||
|
||||
@@ -59,6 +60,7 @@ const initialState: ReactFlowStore = {
|
||||
autoPanOnConnect: true,
|
||||
autoPanOnNodeDrag: true,
|
||||
connectionRadius: 20,
|
||||
onError: devWarn,
|
||||
};
|
||||
|
||||
export default initialState;
|
||||
|
||||
Reference in New Issue
Block a user