streamlined connections

This commit is contained in:
peterkogo
2024-06-26 15:03:12 +02:00
parent 44254648c8
commit 5493f045ff
25 changed files with 355 additions and 474 deletions
+1 -2
View File
@@ -6,7 +6,6 @@ import { ConnectionState } from '@xyflow/system';
const selector = (s: ReactFlowStore) => ({
...s.connection,
inProgress: s.connection.fromHandle !== null,
});
/**
@@ -15,6 +14,6 @@ const selector = (s: ReactFlowStore) => ({
* @public
* @returns ongoing connection
*/
export function useConnection(): ConnectionState & { inProgress: boolean } {
export function useConnection(): ConnectionState {
return useStore(selector, shallow);
}