",[2990,2991],{"name":2903,"color":2904},{"name":2992,"color":2942},"needs reproduction",31900,"`useFetch` makes duplicate requests on client-side page navigation when wrapped in a composable","2025-04-28T05:45:41Z","https://github.com/nuxt/nuxt/issues/31900",0.6489502,{"description":2999,"labels":3000,"number":3004,"owner":2906,"repository":2906,"state":2929,"title":3005,"updated_at":3006,"url":3007,"score":3008},"### Environment\r\n\r\n- Operating System: Darwin\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: pnpm@8.11.0\r\n- Builder: -\r\n- User Config: ssr, devtools, build, css, modules, components, runtimeConfig\r\n- Runtime Modules: @nuxt/image@1.1.0, @nuxtjs/i18n@8.0.0-rc.5, @nuxtjs/color-mode@3.3.2, @pinia/nuxt@0.5.1, @vueuse/nuxt@10.7.0, @unocss/nuxt@0.56.5, @pinia-plugin-persistedstate/nuxt@1.2.0, nuxt-laravel-precognition@0.0.7, tdesign-vue-next/es/nuxt\r\n- Build Modules: -\r\n\r\n\r\n### Reproduction\r\n\r\nmiddleware:\r\n```\r\nexport default defineNuxtRouteMiddleware(() => {\r\n const { data } = useFetch('/api/profile')\r\n})\r\n\r\n```\r\nserver\r\n```\r\nexport default defineEventHandler(\r\n async (event) => {\r\n console.log(event.path)\r\n },\r\n)\r\n\r\n```\r\n\r\n### Describe the bug\r\n\r\nuseFetch in middleware will called twice, once in server, once in clicent.\r\nyou can see 2 event.path log.\r\nand in the browser devtools will see a request.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3001,3002,3003],{"name":2925,"color":2926},{"name":2903,"color":2904},{"name":2992,"color":2942},24677,"useFetch in route middleware will called twice.","2023-12-11T11:30:26Z","https://github.com/nuxt/nuxt/issues/24677",0.65439564,["Reactive",3010],{},["Set"],["ShallowReactive",3013],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4E3SX2BQ5wgkrHTRTmTvnxvVjAcUwyUbC5MeHEq4Ae8":-1},"/nuxt/nuxt/15528"]