Is the FalcorJSON.$__status property supposed to reliably determine whether or not a model query is done emitting?
I'm running into the following issue:
-
model cache is populated with some results, e.g. [search, 1, { to: 9 }, title]
-
query model that emits progressively for paths, some of which can resolve in the local cache
model.get(['search', 1, { to: 19 }, 'title']).progressively()
.subscribe({
next(falcorJSON => {
console.log('response:', falcorJSON.json.search[1]);
console.log('status:', falcorJSON.json.$__status);
})
});
- model emits twice, first with partial response from cache, second with total response. But each time w/
resolved status
// > response: { 0: { title: '...' }, ..., 9: { title: '...' } }
// > status: resolved
// sometime later...
// > response: { 0: { title: '...' }, ..., 19: { title: '...' } }
// > status: resolved
Is this a correct usage of $__status?