react-flow-chart
react-flow-chart copied to clipboard
Dynamically Update the Chart State
Hi,
I'm using the FlowChartWithState component and I'm setting an initial value from the variable chartSimple given in the example on the Readme page. I tried to update the variable and I can see that the props for the component are updating but the state isn't. Can you please help? I've attached a screenshot of the issue.

Is your variable is maintained in state? In my case I'm using redux state container, mapping redux state to props and binding to FlowChartWithState.
This didn't worked and I ended up re-mounting component by updating the parent props property to hide and show.