Save Data in Tree

I have the tree and the folders that I add and change the name are modified, but at the time of reloading the page these changes are no longer found.
What could I do to keep the changes made, thanks

Please, try to use the serialize() method of the data collection:

tree.data.serialize()

https://docs.dhtmlx.com/suite/data_collection__serialize.html