rx-query
rx-query copied to clipboard
disable caching entirely?
I have a query that I re-create on an event (button press), which I then subscribe to with an async pipe Since must provide a key, each button click after the first, retrieves the cached value in the query.
I have tried:
- passing null as query key - no change
- passing undefined as query key - no change
- Passing 'key'+new Date().getTime() - effectively the key is different on each request. This does what I want - but I don't want to cache a ton of copies of my results.
- Setting cacheTime, in options to 1ms. - no change
- Setting staleTime, in options to 1ms. - no change
I am essentially looking for the way I recall an old version of rx-query working. It was a simple wrapper around the query to provide the query status.
Perhaps a viable solution would be if there was a version of the exported query() function, which did none of the querying or mutating, or retrying. Something like simpleQuery() Or implement a version that does not take a key, for example.