SaltTheWound
SaltTheWound
NNuxt
Created by SaltTheWound on 3/26/2025 in #❓・help
Nuxt active-link-class
I have the following folder structure: Blog -> index.vue Blog -> [_slug].vue I want Navigation link to have an active class whenever a user visist the nested slug page. Currently the route is only active when directly visiting Blog -> index.vue
11 replies
NNuxt
Created by SaltTheWound on 3/1/2025 in #❓・help
await callOnce() blocks navigation
In my nuxt app i replaced:
const { status } = useAsyncData(() => store.fetch())
const { status } = useAsyncData(() => store.fetch())
with
await callOnce(() => store.fetch(), { mode: 'navigation' })
await callOnce(() => store.fetch(), { mode: 'navigation' })
in order to keep SSR while having a re-fetch when navigating to that page. Now the issue becomes that i have to manually implement the status ref with pending states on all components where i use callOnce and all pages become blocked on navigation. What would the correct approach be here?
20 replies