Relative Content

Tag Archive for nuxt.jsnuxt3.js

Nuxt 3 create alias for useAppConfig import

I’m working on a Nuxt 3 application where I’ve copied a module from another project. This module utilizes a custom composable named useAppConfig which is originally imported as @app1/composables/useAppConfig.js.

useAsyncData status returning idle

const { data, status, error, refresh, clear } = await useAsyncData( ‘campaign’, () => $fetch(`${$request.baseUrl}/cs/v1/campaign/find/${route.params.campaign}?mode=${route.query.mode || ”}`, {method: ‘POST’}), { server: true, deep: false } ) console.log(data.value, status.value) I have a NUXT 3 app and I am trying to implement SSR. There’s a page where I have to render campaigns and I would like to […]