alex
query params on history back
hey I have a plp with a load more button which adds query params with the paging number. When I am on page 3 and click on a product the product detail page is loading. However when I go back the query params are gone... Is there a way to go back to the plp with the query params?
1 replies
nuxt pages blank before showing anything
I have a page that shows some data from an API. I fetch the data and as long as it fetches I want to trigger a loading skeleton. However it seems as the page only loads when the fetching is already done resulting in having no skeleton. This projekt is a port of nuxt2. I remember this was working in nuxt2. Is there something changed how the pages are rendering? I am coming from react and I know for a fact that they suspend the rendering until all the data is up. Is there something similar in place in nuxt3?
2 replies
autoimports not updating
hey, I have some helper functions under /utils and they have been generated accordingly... however, I decided to put some of them into composables and removed them from utils. But then I figured the import.d.ts in the .nuxt folder doesnt get updated anymore. After I remove a certain function it is still in the import file. Should that not being updated as soon I remove the function?
3 replies
HMR in docker not working
Hey, I just created a fresh project and put that into a docker container. When I start the container I realized HMR is not picking up any changes in code... any idea what the issue could be here?
Dockerfile
FROM node:lts
WORKDIR /app
COPY ./package*.json /app/
RUN yarn install
COPY . .
EXPOSE 3000
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
CMD [ "yarn", "dev", "-0" ]
7 replies