rx-query
rx-query copied to clipboard
Add Dev Tools
Hey,
I am trying to show the number of queries which are fetching right now.

However there is something I don't understand, so I provided this commit with some console.logs.
- npm start
- clear the console
- Enable network throttling Slow 3G
- Hover over Rick Sanchez
The network request is made and this gets logged immediately

After 1s the network request comes back and this gets logged
This makes it impossible for me to show the currently fetching requests in the dev tools, because after the loading state is correctly emitted (between queryCache: 4 and queryCache: 5), the cache$ in the dev tool immediately emits again with the loading state missing (between queryCache: 5 and queryCache: 6).
Should prefetch() unsubscribe only after a successful response and not immediately? Could this be the reason for my issue? (I am still struggling to understand the code base)