@xrenders/xflow
Version:
一款功能强大、易用灵活的流程编辑器框架,帮助你轻松构建复杂的工作流和流程产品
15 lines • 359 B
JavaScript
import { shallow } from 'zustand/shallow';
import { useStore } from './useStore';
var nodesSelector = function nodesSelector(state) {
return state.edges;
};
/**
* Hook for getting the current edges from the store.
*
* @public
* @returns An array of edges
*/
export function useEdges() {
var nodes = useStore(nodesSelector, shallow);
return nodes;
}