avalanche
avalanche
NNuxt
Created by partap on 10/12/2024 in #❓・help
Server-only modules for Nitro
Are you not registering server routes in the sever folder (https://nuxt.com/docs/guide/directory-structure/server) are you trying to load something else? Can you give an example of what you have put in the server folder?
4 replies
NNuxt
Created by avalanche on 10/10/2024 in #❓・help
Same useLazyAsyncData and useFetch - but useLazyAsyncData not fetch on initial render or hard refres
In development. I've even tried to simplify my useAsyncData request to its simplest form to see if it fetches:
const { status, data: airlines, error, refresh } = await useAsyncData('airlines', () => $fetch('/api/airlines/list'))
const { status, data: airlines, error, refresh } = await useAsyncData('airlines', () => $fetch('/api/airlines/list'))
But no dice, even if I refresh the page, but if I navigate to the page it will execute. While useFetch continues to work flawlessly both in its simplest form and the more complex options indicated above.
3 replies