react-flow-chart icon indicating copy to clipboard operation
react-flow-chart copied to clipboard

Dynamically Update the Chart State

Open akhil97 opened this issue 5 years ago • 1 comments

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. image

akhil97 avatar Jun 11 '20 14:06 akhil97

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.

karthiksubramaniam avatar Jun 25 '20 07:06 karthiksubramaniam