multiple queries in useFetch how to batch update the queries so that api hit only once
I am new to nuxt i and working on it from last 2 months.
I am using useFetch to fetch data
now i am watching for query parameter change
and lets say i change the url in browser from page=1 to page=5
here is the code
now the issue is as soon as pageNum gets change it hit the api and again when searchAfter change it again hit the api now i don't want to call the api twice.
i want to update both pageNum and searchAfter then want to hit the api only once
pageNum , keyword, searchAfter all the reactive.
0 Replies