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