Kong / swrv

Stale-while-revalidate data fetching for Vue

Home Page:https://docs-swrv.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we use swrv with Vue 2?

ghostlexly opened this issue · comments

Hello,

I'm using a Vue 2 version of Nuxtjs and i don't have any setup() functions...

You have to use setup function via the composition api if you’re using Vue 2.x https://github.com/vuejs/composition-api