Comments (1)
Hi, I try to use removeNode in useAction hook to remove my branch node but seem it not working (only work with another node types). May I missed something? BranchNode.tsx
const { addNode, removeNode } = useAction()
const node = useContext(NodeContext)
removeNode(node)
My registedNode
{
type: 'branch',
name: 'Branch',
conditionNodeType: 'condition',
displayComponent: BranchNode,
addableComponent: ModalAddNode,
addConditionIcon: <div style={{ width: 2, height: 10, backgroundColor: '#999' }} />,
addableNodeTypes: []
}`
The displayComponent of the branch node will not be rendered by default. Please set showPracticalBranchNode
and showPracticalBranchRemove
true to show displayComponent
.
from flow-builder.
Related Issues (20)
- Add Multiple `isStart` Nodes. HOT 1
- Change `onAddNodeSuccess` to return `INode` HOT 2
- Get only changed node HOT 1
- [feature request] 能否增加画布拖动功能 HOT 5
- Conflicting peer dependency - react-sortable-hoc HOT 2
- 当ConfigComponent中表单存在树形结构,渲染报错 HOT 7
- 可以支持在 FlowBuilder 里面支持传 children 吗,这样就可以share context 了 HOT 1
- Help required
- 【特性】增加点击节点和点击画布的回调通知 HOT 1
- [Feature Request] 增加并行节点类型 HOT 3
- 样式优化 HOT 2
- Cannot add data to the node with addNode HOT 3
- Disable adding nodes before created one HOT 1
- Getting the current position (index) of the clicked "add node button" HOT 1
- [Feature] Full screen editor
- Custom add button HOT 2
- Branch route labels HOT 1
- [Feature] 开始节点支持打开抽屉进行配置
- 抽屉配置中如何设置其他节点
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow-builder.