If you have a replica configured with ReplicaDriverIndexedDB, there isn't a guarantee that the database is ready when you initially call a method on it.
For example, even though I have set a particular doc and know it is there, this will return undefined soon after page load.
However, it would be better if any replica methods have this await built in. It may require some new method on the drivers, that resolves a promise when the driver is ready.
If you have a replica configured with ReplicaDriverIndexedDB, there isn't a guarantee that the database is ready when you initially call a method on it.
For example, even though I have set a particular doc and know it is there, this will return undefined soon after page load.
I've gotten around it first by putting in a delay. But then after digging around, I replaced the delay with an await on IndexedDB.
However, it would be better if any replica methods have this await built in. It may require some new method on the drivers, that resolves a promise when the driver is ready.