refactor(handles): reduce re-renderings, handles on top of each other #3010

This commit is contained in:
moklick
2023-05-09 17:08:14 +02:00
parent e67b1fbb13
commit c428b906b7
5 changed files with 38 additions and 38 deletions
@@ -62,7 +62,7 @@ const Handle = forwardRef<HTMLDivElement, HandleComponentProps>(
const store = useStoreApi();
const nodeId = useNodeId();
const { connectOnClick, noPanClassName } = useStore(selector, shallow);
const { connecting, clickConnecting } = useStore(connectingSelector(nodeId, handleId, type));
const { connecting, clickConnecting } = useStore(connectingSelector(nodeId, handleId, type), shallow);
if (!nodeId) {
store.getState().onError?.('010', errorMessages['error010']());