How to save the view in gantt

Hii, I have tasks in gantt where I have open nodes and when I save the page refreshes and previous state is gone and all the nodes are close and we are back to the initial state, how can I save the view in gantt using react

Hello,

You can store the close/open state of the tasks by adding an open parameter in your database and update it when you close/open tasks using onTaskClosed and onTaskOpened handlers:
https://docs.dhtmlx.com/gantt/api__gantt_ontaskclosed_event.html ;
https://docs.dhtmlx.com/gantt/api__gantt_ontaskopened_event.html ;
Please check the demo of how it might be implemented:
https://files.dhtmlx.com/30d/60e27050fc1fcb297e1ddd12075b4559/reactive-gantt.zip