#ssg prerender dynamic routes with queries not working

3 messages · Page 1 of 1 (latest)

static sparrow
#

just to be sure: this code is from a file located in pages/category/[category].vue ?

static sparrow
#

why are you watching the url :

{
   watch: [computed(() => route.query.page || 1)],
}

if the url changes, useAsyncData will be triggered, so if you watch it, it might run twice. once when the page renders and once in the client... I'm not quite sure about this though...