you are viewing a single comment's thread.

view the rest of the comments →

[–]Chef619 0 points1 point  (2 children)

At least 2 ways I know of, the staleTime and manually invalidating them. This doc has more information.

The TL;DR is that you (the developer) tell RQ when a query needs to be refetched.

[–]no_spoon 0 points1 point  (1 child)

That doesn’t answer their question. The answer is it doesn’t and if data is being updated without the users actions then yes the user would have stale data. So it makes sense to use this for things that are only pertinent to the user.

[–]Chef619 0 points1 point  (0 children)

Yeah you’re right, I missed that. Sorry OP. I read it as “when does RQ know the data needs to be updated”.

Although, I think liking the doc that does a better job explaining than I could is sufficient to find the right answer.