T
TanStack2y ago
unwilling-turquoise

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
vicious-gold2y 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-turquoise
unwilling-turquoiseOP2y ago
thanks!

Did you find this page helpful?