Closed goodpilotfish closed 1 year ago
I can verify that monday.storage started working when the app is Published (either as App or iFrame).
Proposed action:
Hey @goodpilotfish – thanks for reporting this. I can't reproduce it – I always get the correct value when reading from the storage, even without refreshing the page.
I tried setting the data and then retrieving it immediately. It worked.
I also tried commenting out one command at a time. It worked.
What kind of app feature did you test it on? I tried it on a board view and it worked fine.
EDIT: I tried it on all the feature types that support the storage API – board view, item view, widget, object view. For all of them, it worked as expected.
Heads up, I'm closing this issue. If you're still having trouble with this, please post in our dev community or shoot our technical support team an email so we can help you out!
Here are the links you need:
Describe the bug monday.storage does not remember setItems between page reloads
Steps to reproduce Working code
monday.storage.instance.setItem(KEY, JSON.stringify({ tjo: 'tjo'})).then(res => { monday.storage.instance.getItem(KEY).then(res => { console.log(res.data.value); // -----> Correct { value: str, success: true } }); });
monday.storage.instance.getItem(KEY).then(res => { console.log(res.data.value); });