Skip to content

Query returns null for invalidated entity instead of reexecuting #3683

Closed Answered by myieye
myieye asked this question in Q&A
Discussion options

You must be logged in to vote

I was not understanding things correctly. What was actually happening is that

  • cache.invalidate() was causing my query store to update
  • When it updated it got null from the server and excplicitly cached that

So, what I actually needed to fix this was either:

  • pause() the queryStore, because I know it will return null and I don't want that to get cached OR
  • Add a query update to the cacheExchange that invalidates nulls as they arrive

I ended up doing both for now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by myieye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant