navigateTo inside useAsyncData
I have this request in my SPA component:
When I trigget tha navigateTo on the catch, the browser stills throws an error:
I am assuming that the page is being mounted before the navigateTo runs but I don't understand why because the error does not happen if the request is successfull.
When I trigget tha navigateTo on the catch, the browser stills throws an error:
TypeError: Cannot read properties of undefined (reading 'type') which comes from this line const productType = computed(() => product.value.type); I am assuming that the page is being mounted before the navigateTo runs but I don't understand why because the error does not happen if the request is successfull.
