@rxflow/base
Version:
BaseFlow - 核心 Flow 组件库
24 lines (22 loc) • 571 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useFlowId = void 0;
var _useSelector = require("./state/useSelector");
/**
* @author: yanxianliang
* @date: 2025-07-23 16:08
* @modified:2025/7/23 16:08 by yanxianliang
* @desc: 获取 flow 的 Id
*
* Copyright (c) 2025 by yanxianliang, All Rights Reserved.
*/
/**
* 获取 workFlow 实例 id,适用于页面多 flow 场景
* 例如:mark 隔离
*/
const useFlowId = () => {
return (0, _useSelector.useSelector)(state => state.id);
};
exports.useFlowId = useFlowId;