how do you use useFetch() in a page (options api)
hello, I am working on a website in nuxt that needs to load data from somewhere else. I got that part working in a way that i liked it and made a util to try to make it easier.
it worked perfectly in my little testing page that used the vue composition api, but i cannot get it working anywhere else where i use the options api. I don't know the composition api well and would prefer to not relearn everything for this.
here is the util that i'm using:
here is the page where it works:
is there any way to do this in the options api?
3 Replies