Definitely - if you're invalidating the cache and then immediately re-querying, there is almost definitely an asynchronous race condition at play.
I did some quick testing and the below seems to work. It stops behaving as expected as soon as you drop the await
, though!