swrv
swrv copied to clipboard
cant get it to work on nuxt-bridge
Reproduction
https://github.com/csechuan/test-nuxt2/blob/main/pages/index.vue
Description
Error : Could not get current instance, check to make sure that useSwrv
is declared in the top level of the setup function
I have tried on script setup()
and script setup
. Neither works. Check the code and run on the script, I can get the instance indeed with the composition-api. So i am not sure what's wrong.