Am I doing composables wrong?
I have a component that ended up with a lot of queries that were used to derive a value, so I figured I'd refactor that logic into its own file, but I'm having some trouble getting vue-query to work in a composable scenario. Here's a redacted and simplified version of what my external module now looks like:
My component
While I can see the network requests being made, it seems like the queries reactivity disappear along the way, leaving the status left on
Any ideas what I'm missing?
My component
button.vue uses the composable like any other, by importing it and const status = useDownloadStatus("foo") from <script setup>While I can see the network requests being made, it seems like the queries reactivity disappear along the way, leaving the status left on
loading and a ill-boding warning from vue-query in the console:Any ideas what I'm missing?