HMR Loading with Nuxt Page Refs
BaseTabContainer
handles a tab list (like your browser tabs) and also renders a BaseTabComponent
that wraps a NuxtPage
. We're exposing a title and description from the NuxtPage
-> BaseTabComponent
and then we're exposing the nuxtPageRef to the BaseTabContainer
. My system works except when an HMR load occurs, since HMR loads reset refs (at least thats what im guessing).
TL;DR -> HMR loads reset the nuxtPageRef and messes up my code. This isnt a bug in production since HMR stuff is for developers, but it becomes quite annoying....Nuxt Content: how can I fetch files from another repository or passsing a URL for a .md file?
Config help
Lazysizes hydration missmatch
I tried to import the lazysizes library with a plugin named '/plugins/lazysizes.client.ts' but I still get theses errors. Can someone explain me why this happens and show me how to do it right :D? This is what i tried: ...
Error with bode 23.1
Any way to fix sourcemaps being completely wrong?
How to write test for API with authenticate required.
Nuxt3, Vitest, Vuetify3: unable to resolve Vuetify components
NuxtUI v2 make primary color black
middleware
Vitest times out when mocking the Router
Tailwind works, but doesn't show suggestions (intellisense) in a Nuxt project
v-bind not unwrapping reactive properties from composable
Generating thumbnails of site
build:done
builder:generateApp
...Question about image tag and svgs in production
Usefetch doesnt work when using middleware
Trouble with multiple pinia actions inside useAsyncData
useAsyncData
to avoid dupe requests. I get that you're not really meant to use useAsyncData
for side-effects but since it's the only mechanism I know of that prevents duplicate fetches, it's what I got.
The problem is, when I generate an array of requests to pass into a Promise, the function stalls. It's not that the reqs
array is undefined - it's that nothing runs past it inside that function. asyncData simply returns null before ever reaching the Promise.
```...Sanity Navigation Error: TypeError: can't access property
Uncaught (in promise) TypeError: can't access property 0, $setup.project is null
. However clicking the project again successfully navigates to it
On the project page I am completely stuck and can't navigate the same error appears in console and I need to do a hard refresh to proceed. I'm using a simple groq query. ...