Hi everyone, we've been wrestling with a perplexing issue related to Datastore and are seeking your expert advice to help us find a solution.
The Problem
Our website relies on Amplify Auth and Datastore to manage user data. Everything works seamlessly when a user accesses our site through a single browser tab. However, the trouble arises when the same user attempts to open a duplicate tab of our site within the same browser. In this scenario, the second tab fails to load any data from Datastore until the first tab is closed. This peculiar behavior seems to exclusively occur when multiple instances of the site exist within the same browser. Strangely enough, it functions as expected when the user has separate sessions on different browsers.
Our hunch is that this might be related to the browser's IndexedDB being locked for one of the tabs, but we can't say for certain.
We would be immensely grateful for any guidance or insights you can provide to help us resolve this perplexing issue. Your expertise is greatly appreciated.
Thank you in advance for your assistance!