Sunny
Parse error /home/sunny/dev/app-nuxt/assets/css/main.css?direct:3596:20
i get this overlay few times while refreshing my home page. can any one please help how to solve this issue. I am new to web dev.
app-nuxt/assets/css/main.css
@tailwind base;
@tailwind components;
@tailwind utilities;
in nuxt.config.ts
css: [
'~/assets/css/main.css'
],
1 replies
How to organize query params in useFetch
I have an API with many parameters, so I am using useFetch('/api/myapi', { query: params }). The params is computed and returns all the necessary parameters to fetch the data. This works fine, but these parameters can also be changed from other components. How can I organize these parameters so that the API call automatically triggers when any of them change, but without making multiple API calls if two or more parameters are modified back-to-back? I want to avoid immediate API calls for every single change.
8 replies
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.
1 replies