Gantt Chart and react

Gantt chart using react js but i have facing some issues when i click on other menu and came back gantt page all task iscollapse 01|690x269


Probably, it happens because after you come back to Gantt, react reloads Gantt fully or partially (only with gantt.parse() function).
You can add the following command before gantt.init() so the tree will be opened every time Gantt loads the tasks:
gantt.config.open_tree_initially = true;