Jeffrey GONZALES
UPagination
I concur with @Kuroro that you should try to pass
page
directly, instead of page.value
because the documentation states:
All fetch options can be given a computed or ref value. These will be watched and new requests made automatically with any new values if they are updated.cf. https://nuxt.com/docs/api/composables/use-fetch#params Let us know if that worked out or not @Furnaxe.
11 replies
UPagination
Hey, @Furnaxe, sorry I don't have much time to help. Let me just ask a clarifying question, and then if someone else wants to pick up and answer in my place that'll be great: Why do you want to watch the page? I think you should add the page to your useFetch URL directly if I'm correct, because that way, it would be cached appropriately…
11 replies