Open robertoestivill opened 1 year ago
It would be good if you could run some experimentation with your use case and contribute back! It is time-consuming to setup an environment for me to produce your use case and implement a solution.
Your idea looks good to me btw
I was just wondering if anyone could think of an API to use, rather than people trying to replicate my use case.
Yeah, I can post my results here, but sadly they are not looking very promising.
It seems like QueryResultSource.loading
is only emitted the very first time handleResult
is called, very likely when there's no results yet.
From that point on, handleResult
is being called ONLY with QueryResultSource.network
every time there's a polling request.
This means that QueryResult.isLoading
is always false
during polling and there's no event I can use to trigger the start of the measuring.
Will keep digging.
I was just wondering if anyone could think of an API to use, rather than people trying to replicate my use case.
Without know and read what is the use case it is very difficult to design an API, for this reason exist the PoC
I'm creating a polling process using a
WatchQuery
in the following wayI'm trying to understand how long does each of the individual queries total duration is in terms of roundtrip to the server , but I don't find any way to "hook" or "get a callback" for when this events happen.
Is it safe to assume that when
result.isLoading == true
the polling request has just kicked off?Maybe something like this ?
Any tips or ideas are appreciated Thank you✌️