How to Implement SWR (Stale-While-Revalidate) Functionality with the Options API in Vue 2?

I am working on a project using Vue 2 and would like to implement the SWR (Stale-While-Revalidate) functionality for data fetching. However, I have found that popular libraries like SWRV and TanStack (vue-query) can only be used within the setup function. My colleagues primarily use the Options API in Vue 2 for development. Since they are mostly backend developers and are not familiar with the setup syntax, I need to find a way to implement SWR functionality within the Options API.

I have attempted to solve it by writing a mixin to manage all requests. However, I find this approach to be inelegant. Specifically, every time I make a request, I end up with a Vue instance, which complicates the management of data and state.

Is there a way to integrate SWRV or TanStack (vue-query) with the Options API in Vue 2? If not, are there any alternative libraries or approaches that can achieve similar functionality within the Options API?

Thank you for your help!