react-nojsja icon indicating copy to clipboard operation
react-nojsja copied to clipboard

Save to dataBase

Open Aliber009 opened this issue 4 years ago • 2 comments

Hello nojsja, I want to save a specific tree ,to my database , and get it later , please how can I do that

Aliber009 avatar Jul 05 '21 00:07 Aliber009

Hello nojsja, I want to save a specific tree ,to my database , and get it later , please how can I do that

Check code here 企业微信截图_16254469118073

In onDataChange hook function, get the new tree data when it changed and save it to database. Whenever you want to update tree from your database, just send a ajax request and update data in store/state (check the attribute - data);

nojsja avatar Jul 05 '21 01:07 nojsja

okey thanks , is Data a json object ? which would take one column on my database ?

Aliber009 avatar Jul 05 '21 18:07 Aliber009