QuerySet:makeQuery bug, added logging

Weird behavior: filterlinking calls makeQuery twice in quick
succession, but for some reason the calls resolve out of order
when starting from a refresh. However, after moving the cursor around
a bit, they START BEHAVING CORRECTLY AGAIN???
This commit is contained in:
Janet Vorobyeva 2023-09-12 15:36:25 -07:00
parent 6c5bd6bbca
commit 9b29a35dc3

View File

@ -163,8 +163,11 @@ export class DynamicQuerySet extends RowSource {
// CB should be called asynchronously, since surprising hard-to-debug interactions can happen
// if it's sometimes synchronous and sometimes not.
console.log(`======= called makeQuery: ${query.tableId}: ${JSON.stringify(query.filters)}`) //TODO JV TEMP DEBUG
newQuerySet.fetchPromise.then(() => {
console.log(`======= promise RESOLVED: ${query.tableId}: ${JSON.stringify(query.filters)}`) //TODO JV TEMP DEBUG
this._updateQuerySetDebounced(newQuerySet, cb);
})
.catch((err) => { cb(err, false); });
}