In this ReacFlow App, the goal is for the two flows to alter a table.
In FlowStates the goal is that when a node is created with onDrop it will increase numberOfStates with its setter. This is not the case:
- First node created with DnD shows first and correct
numberOfStates. - Subsequent DnD nodes show the same
numberOfStatesas the first one. - Changing panel seams to trigger the update and the next
numberOfStateswould be the updated one.
Goal:
- How to trigger the update so the next DnD node has the correct value without needing to change panel to trigger it.