© 2026 Hedgehog Software, LLC
const { data: product } = await useAsyncData('product-id', async () => { try { const response = await getProductById(1) return response.data; } catch { return await navigateTo({ name: 'not-found' }); } });
TypeError: Cannot read properties of undefined (reading 'type')
const productType = computed(() => product.value.type);