Closed sgwilym closed 2 years ago
New docs were being written with the wrong localIndex from both of these drivers, due to the maxLocalIndex not accounting for persisted docs.
localIndex
maxLocalIndex
Both LocalStorage and IndexedDB drivers now determine the maxLocalIndex using persisted docs, and a test has been added for this.
What's the problem you solved?
New docs were being written with the wrong
localIndex
from both of these drivers, due to themaxLocalIndex
not accounting for persisted docs.What solution are you recommending?
Both LocalStorage and IndexedDB drivers now determine the maxLocalIndex using persisted docs, and a test has been added for this.