mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
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:
parent
6c5bd6bbca
commit
9b29a35dc3
@ -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); });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user