TanStackT
TanStack3y ago
2 replies
rubber-blue

Vue Query Reactive SWR

Hello, folks! I'm new to Query (using it in a Vue3 application) I have a couple of queries that look similar this one. https://gist.github.com/jarrettgreen/0c8b504dc0f736515162bfb517e3e3d7 - The 'feels bad' vibes going off is using ref within the query, the boilerplate needed for SWR cache to work, and this leans on onSuccess in a bad way, which is deprecated. I feel like I'm overthinking something and am just overall not using query correctly. Any thoughts on this would be greatly appreciated!

Edit:
Gist
GitHub Gist: instantly share code, notes, and snippets.
useCheckInPendingReviewQuery.js
Was this page helpful?