\r\n \u003C/div>\r\n\u003C/template>\r\n\u003Cscript setup>\r\nonMounted(() => {\r\n await useFetch('https://beta.glrtec.com/api/v1/me', {\r\n onResponse({ request, response, options }) {\r\n console.log('im success but still i also error');\r\n // even the error response is triggered inside here\r\n },\r\n onResponseError({ request, response, options }) {\r\n console.log('im error');\r\n // error is not triggered\r\n },\r\n });\r\n});\r\n\r\n\u003C/script>\r\n```\r\n\r\n\r\n### Describe the bug\r\n\r\nWhile using the nuxt useFetch composable, I can't seem to catch the error with onResponseError({ request, options, response }). Even the 400/401 status with status.ok is caught inside onResponse({request,options,response}). \r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3059,3062],{"name":3060,"color":3061},"3.x","29bc7f",{"name":3018,"color":3041},20090,"onResponseError({ request, options, response }) is not triggered even when the api calls returns error","2024-05-17T11:40:13Z","https://github.com/nuxt/nuxt/issues/20090",0.70770866,{"description":3069,"labels":3070,"number":3073,"owner":3021,"repository":3021,"state":3023,"title":3074,"updated_at":3075,"url":3076,"score":3077},"### Environment\n\n------------------------------\r\n- Operating System: `Linux`\r\n- Node Version: `v16.14.2`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@7.17.0`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-p2mkbv?file=pages/index.vue\n\n### Describe the bug\n\nhi\r\n`watch` ref in server side not fire. `watchEffect` fire, but not currect.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\nwatchEffect RefImpl { \r\n __v_isShallow: false,\r\n dep: undefined,\r\n __v_isRef: true,\r\n _rawValue: 'bar',\r\n _value: 'bar'\r\n}\n```\n",[3071,3072],{"name":3060,"color":3061},{"name":3018,"color":3041},15662,"`watch` not work in server side","2023-01-19T18:24:54Z","https://github.com/nuxt/nuxt/issues/15662",0.70821077,{"description":3079,"labels":3080,"number":3094,"owner":3021,"repository":3021,"state":3023,"title":3095,"updated_at":3096,"url":3097,"score":3098},"### Environment\n\n------------------------------\n- Operating System: Linux\n- Node Version: v22.15.0\n- Nuxt Version: 3.17.4\n- CLI Version: 3.25.1\n- Nitro Version: 2.11.12\n- Package Manager: pnpm@9.15.9\n- Builder: -\n- User Config: future, compatibilityDate, devtools, modules, experimental, app, runtimeConfig, pinia, shadcn, css, i18n, supabase, eslint, nitro, imports, image, sentry, sourcemap, $development\n- Runtime Modules: @pinia/nuxt@0.11.0, @nuxtjs/supabase@1.5.1, @nuxtjs/i18n@9.5.5, @nuxt/eslint@1.4.1, @vueuse/nuxt@13.3.0, floating-vue/nuxt@5.2.2, pinia-plugin-persistedstate/nuxt@4.3.0, @nuxt/image@1.10.0, @nuxtjs/color-mode@3.5.2, @nuxtjs/tailwindcss@6.13.2, reka-ui/nuxt@2.3.0, shadcn-nuxt@1.0.3, @sentry/nuxt/module@9.24.0, @nuxtjs/robots@5.2.8, @nuxt/content@3.5.1, @nuxtjs/device@3.2.4\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\nRegister plugin with hooks\n\n```javascript\nexport default defineNitroPlugin((nitroApp) => {\n\n nitroApp.hooks.hook('beforeResponse', (event) => {\n consola.info('on before response', event.path)\n })\n\n nitroApp.hooks.hook('afterResponse', (event) => {\n consola.info('on after response', event.path)\n })\n})\n```\n\nmake API call\n\n\n### Describe the bug\n\nthese hooks, doesnt triggered on API call, only work when user visit on browser\n```javascript\n nitroApp.hooks.hook('beforeResponse', (event) => {\n consola.info('on before response', event.path)\n })\n\n nitroApp.hooks.hook('afterResponse', (event) => {\n consola.info('on after response', event.path)\n })\n```\nis there a hook for API, that will executed afterResponse?\n\n### Additional context\n\n```\n future: {\n compatibilityVersion: 4,\n },\n compatibilityDate: '2024-11-01',\n```\n\n### Logs\n\n```shell-script\n\n```",[3081,3082,3085,3088,3091],{"name":3018,"color":3041},{"name":3083,"color":3084},"nitro","bfd4f2",{"name":3086,"color":3087},"upstream","E8A36D",{"name":3089,"color":3090},"needs reproduction","FBCA04",{"name":3092,"color":3093},"closed-by-bot","ededed",32296,"afterResponse and beforeResponse hook doesnt trigger on API call","2025-06-12T02:12:06Z","https://github.com/nuxt/nuxt/issues/32296",0.7099333,{"description":3100,"labels":3101,"number":3104,"owner":3021,"repository":3021,"state":3023,"title":3105,"updated_at":3106,"url":3107,"score":3108},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v20.12.2\r\n- Nuxt Version: 3.11.2\r\n- CLI Version: 3.11.1\r\n- Nitro Version: 2.9.6\r\n- Package Manager: pnpm@8.15.6\r\n- Builder: -\r\n- User Config: srcDir, devtools, modules, ignore, appConfig, css, extensions, routeRules, vue, nitro, runtimeConfig, auth, colorMode, router, csurf\r\n- Runtime Modules: @nuxt/eslint@0.3.12, @nuxt/test-utils/module@3.12.1, @unocss/nuxt@0.60.0, @sidebase/nuxt-auth@0.7.2, @nuxt/ui@2.16.0, @pinia/nuxt@0.5.1, nuxt-csurf@1.5.2\r\n- Build Modules: -\r\n------------------------------\r\n\r\n\r\n### Reproduction\r\n\r\n```\r\n\u003Ctemplate>\r\n\t\u003CUSelectMenu\r\n\t\tv-model=\"eventTypeFilter.selected\"\r\n\t\t:options=\"eventTypeFilter.options\"\r\n\t\tsearchable\r\n\t\tmultiple\r\n\t\tplaceholder=\"Event type filter\" />\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nconst page = ref(1)\r\nconst eventTypeFilter = reactive({\r\n options: ['a', 'b', 'c'],\r\n selected: []\r\n})\r\n\r\nconst { data, pending } = await useAsyncData(\r\n 'events',\r\n () => $fetch('/api/events', {\r\n params: {\r\n page: page.value,\r\n eventTypeFilter: eventTypeFilter.selected\r\n }\r\n }),\r\n {\r\n watch: [page, eventTypeFilter.selected]\r\n }\r\n)\r\n\u003C/script>\r\n```\r\n\r\n### Describe the bug\r\n\r\nchoosing a value does not trigger another fetch\r\n\r\n### Additional context\r\n\r\nIf I use a ref array for the model and pass that to the watcher, it works\r\n`const selectedEventTypes = ref([])`\r\n\r\n### Logs\r\n\r\n_No response_",[3102,3103],{"name":3060,"color":3061},{"name":3018,"color":3041},27261,"Reactive object does not trigger asyncData","2024-05-17T11:17:05Z","https://github.com/nuxt/nuxt/issues/27261",0.71172595,{"description":3110,"labels":3111,"number":3118,"owner":3021,"repository":3021,"state":3023,"title":3119,"updated_at":3120,"url":3121,"score":3122},"### Environment\n\n------------------------------\r\n- Operating System: Windows 7 x64\r\n- Node Version: v18.19.0\r\n- Nuxt Version: 3.8.2\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.1\r\n- Package Manager: yarn@1.22.21\r\n- Builder: -\r\n- User Config: devtools, css, vite, build, modules, proxy, devServer\r\n- Runtime Modules: nuxt-proxy-request@1.7.0\r\n- Build Modules: -\r\n------------------------------\r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/~/github.com/mebest100/nuxt-Vue3Music\n\n### Describe the bug\n\nI'm migrating vue3 to nuxt3 but find the life cycle hook of onMounted does not work on nuxt3.\r\nYou can find Reproduction link to check it.\r\n\r\nFor the root route(app.vue, path: / ), I place a console.log state in onMounted, but no any ouput in cmd console and chrome console.\r\n```\r\nonMounted(() => {\r\n console.log(\"app mounted。。。\");\r\n });\r\n```\r\nalso with another route: (parent.vue, path: /parent), still no any output for it.\r\n\r\nSeems onMounted does not work on nuxt3 at all. \r\nPls help check it. Thx!\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3112,3113,3114,3115],{"name":3060,"color":3061},{"name":3018,"color":3041},{"name":3089,"color":3090},{"name":3116,"color":3117},"⛔️ can be closed","484893",24729,"life cycle hook of onMounted does not work on nuxt3","2024-03-29T20:49:20Z","https://github.com/nuxt/nuxt/issues/24729",0.7119532,{"description":3124,"labels":3125,"number":3134,"owner":3021,"repository":3021,"state":3023,"title":3135,"updated_at":3136,"url":3137,"score":3138},"### Environment\n\n(stackblitz)\n\n------------------------------\n- Operating System: Linux\n- Node Version: v20.19.1\n- Nuxt Version: 3.17.2\n- CLI Version: 3.25.0\n- Nitro Version: 2.11.11\n- Package Manager: npm@10.8.2\n- Builder: -\n- User Config: compatibilityDate, devtools\n- Runtime Modules: -\n- Build Modules: -\n------------------------------\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-cczohr3c?file=layers%2Ftest%2Fserver%2Fapi%2Ftest.get.js\n\n### Describe the bug\n\nin a generic layer, defineEventHandler is undefined for a server api endpoint.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3126,3129,3132,3133],{"name":3127,"color":3128},"good first issue","fbca04",{"name":3130,"color":3131},"workaround available","11376d",{"name":3018,"color":3041},{"name":3083,"color":3084},32034,"server `.js` files in layers are not transpiled","2025-05-08T17:21:06Z","https://github.com/nuxt/nuxt/issues/32034",0.7121639,["Reactive",3140],{},["Set"],["ShallowReactive",3143],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f3BX9XK6QVg0jU-MhV-KB1V-yx37QXKlFerMKHXWqXhc":-1},"/nuxt/test-utils/1332"]