Monday.storage.instance data loss after publishing a major version of the app

Hello,
I have an issue with the monday.storage API. The app has a Board View and a Widget. Both store data in the monday.storage and this works well. Publishing new minor versions of the app has no issue as well. But when I publish and install a new major version, all created board views and widget lose its data.
Is it a known issue? Is there any workaround for this?
Thanks,
Andrey

3 Likes

What I think is happening is that, minor versions use the same instance so the same storage applies to all your minor versions until you create a major version. That will create a new seperate instance which has it’s own storage reference there the previous ones by the minor versions are inaccessible in the major version.

1 Like

Hello @akhaneev,

I will double-check this with our team just to be sure and come back to you here :slightly_smiling_face:

Cheers,
Matias

4 Likes

Thank you, Matias! I’ll be waiting for the news from you.

Sounds good! I’ll come back as soon as I can!

Hello there @akhaneev ,

I heard back from our team.

What Alfred said is correct. Major versions use a different instance. That is why you see this behavior. There is no workaround to pass the data directly to the new instance. You would need to save it on your end first to do that.

Let me know if you have any other questions!

Cheers,
Matias

Hello everyone,

I have discussed this with our team.

We will discuss the possibility of changing this behavior in the future to avoid the loss of data when creating a new major version.

If this gets implemented, we will announce it in our changelog.

Cheers,
Matias

1 Like