Does getQueryData function return a reference to the cached data?

Suppose I have a cached product. I have the following:
const product = queryClient(["Product","some_id"]);
//Knowing that, the product price is 20 at the beginning.
// Some code here
product.price = 14;

This will change product price into cache directly. So, is getQueryData a reference to the cached product?
Was this page helpful?