we face a problem when using data storage (in dev mode) the data is not anymore available after page refresh ?
is it a normal behaviour ? how to make the data persistent ?
this is completely dependent on how this is accessed or called. Since I do not have access to a broader code context, I may not answer your question accurately.
But broadly, I understand your question as to How do I persist my data? How does it usually work?
client.db.set(`rocketUser: ${loggedInUser.id}`, rocketData).then(function success(..){}, function failure(..){});
Above line will store the data in the .fdk/localstore file in local simulation, likewise stored within the developer platform in production.
Once the data stored, the page refresh will not affect it. Thus persisted.
client.db.get(`rocketUser: ${loggedInUser.id}`).then(function fetched(data){
console.log(data); // rocketData
}, function failure(){});
We recently wrote a tutorial hope it might be helpful - Introduction to Data Storage and Request Method..
(*The app in the tutorial is in But the platform is the same at the convenience of developers for any host Freshworks product.)