I have a problem!
One of our micro apps (Meteor v184.108.40.206 with Blaze v2.3.0) has a startup flow like this:
- User opens the site with an identifying URL, such as https://app.com/zKmSa
- When the page is loaded, the client calls a method with the id
zKmSaand gets some documents in return which are stored in a local collection
- Everything works fine and the app uses those documents in the local collection
- User switches between browser tabs, does something else for a while on another tab, then re-opens the tab with our app
Oh-oh: All the data in those local client collections is gone, and app state is ruined. In the mobile phone’s browser console I get just
Connection timeout. No sockjs heartbeat received.
Any ideas how to solve this problem? How can I persist those documents in the local collections? Maybe I could detect when I’ve lost the local collection content and re-trigger the process for initializing data?