marvin
marvin
NNuxt
Created by marvin on 5/16/2024 in #❓・help
Best practice for using the Route for storing state
I had quick a look into that. Seems exactly to be what I need, seems a bit strange to use but I think that will settle once I am using it and not just looking into the docs. Thank you very much!
3 replies
NNuxt
Created by marvin on 4/12/2024 in #❓・help
Cannot read properties of null (reading 'previousSibling')
Hey @Eric. No I don't use the previousSibling function. I guess it is generated by the gallery grid, which is a simple v-for="photo in photos" while const photos = ref<Photo>([]) and in combination with a loadMorePhotos(page?: number): undefined function, which gets triggered once the user scrolls down to continously load new pages of photos from the server. However there is an additional call of that function right at the bottom of the component, to load the first page of photos on initial page load.
often because the app tries to create html elements based on data that hasn't arrived back from a fetch request.
So this could be an async/await problem? I will have a deeper look into that
6 replies
NNuxt
Created by marvin on 4/12/2024 in #❓・help
Cannot read properties of null (reading 'previousSibling')
Hey sorry for that late answer. I unfortunately don't. The problem occurs in a project that shows galleries uploaded by a photographer to the user. This specific error occurs when the photographer opens the gallery page (pages/galleries/[id].vue). But it doesn't occur always, just sometimes
6 replies