I used the waitForLeadership
to let only one tab sync the db. And it looks like it works. But if I activate this feature and open more than 3 tabs, the next tabs won't load.
Chrome always says, waiting for available socket...
Did anyone had/have the same issue?
What did I do wrong? Did I have to manually start the sync process? If I insert in one instance, master or not, it is visible in all correctly. But it seems, that multiple instances try to open a socket/long polling.
newRxDb.waitForLeadership().then(() => {
console.log(`isLeader now`);
});