View mapped data in vue-query devtool
Is there a way to look at the data mapped by vue-query's
select
method within the vue-query devtool?
If I look at the cache, the data shown is the data that's returned from the API. I'd love to be able to look at the remapped data somehow.2 Replies
vicious-gold•2y ago
We do not store
select'ed
value in the cache. It's a component level data. And it can be different for each component, depending on select function used. If you use the same select
function, it might be better to move It's logic to queryFn
(but that depends on the usage)
Devtools have only access to queryCache.
But I beleive you can still inspect component data, and look for returned value there.unwilling-turquoiseOP•2y ago
thanks!