You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another bug than 2012: on.on('populate') executes within 'versionchange' transaction and not normal 'readwrite' transaction.
The result was that our "mutate" override added the optimistic updates but the "transaction" override didn't follow up on these optimistic updates because it only follows up on "readwrite" transactions so it left them hanging there forever.
primKey.outbound||// Non-inbound tables are harded to apply optimistic updates on because we can't know primary key of results
151
151
trans.db._options.cache==='disabled'||// User has opted-out from caching
152
-
trans.explicit// It's an explicit write transaction being made. Don't affect cache until transaction commits.
152
+
trans.explicit||// It's an explicit write transaction being made. Don't affect cache until transaction commits.
153
+
trans.idbtrans.mode!=='readwrite'// We only handle 'readwrite' in our transaction override. 'versionchange' transactions don't use cache (from populate or upgraders).
0 commit comments