",[3216,3217],{"name":3138,"color":3139},{"name":3218,"color":3168},"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":3225,"labels":3226,"number":3230,"owner":3141,"repository":3141,"state":3155,"title":3231,"updated_at":3232,"url":3233,"score":3234},"### 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_",[3227,3228,3229],{"name":3151,"color":3152},{"name":3138,"color":3139},{"name":3218,"color":3168},24677,"useFetch in route middleware will called twice.","2023-12-11T11:30:26Z","https://github.com/nuxt/nuxt/issues/24677",0.6543957,{"description":3236,"labels":3237,"number":3239,"owner":3141,"repository":3141,"state":3155,"title":3240,"updated_at":3241,"url":3242,"score":3243},"### Environment\n\n- Operating System: Linux\n- Node Version: v18.20.3\n- Nuxt Version: 3.15.4\n- CLI Version: 3.22.2\n- Nitro Version: 2.10.4\n- Package Manager: npm@10.2.3\n- Builder: -\n- User Config: compatibilityDate, devtools\n- Runtime Modules: -\n- Build Modules: -\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-pwetu3nb?file=app.vue\n\n### Describe the bug\n\nI have a component with `useFetch`. The component takes props that are used as body arguments in `useFetch`. When I use the component multiple times, the last `useFetch` seems to overwrite the data in other components. The props are different for each component instance and I also tried to add different `key`s.\n\nThe network tab shows that the data is fetched correctly but then Nuxt messes things up.",[3238],{"name":3138,"color":3139},31098,"useFetch overwrites data when component is used multiple times","2025-02-24T14:47:50Z","https://github.com/nuxt/nuxt/issues/31098",0.65504396,["Reactive",3245],{},["Set"],["ShallowReactive",3248],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4E3SX2BQ5wgkrHTRTmTvnxvVjAcUwyUbC5MeHEq4Ae8":-1},"/nuxt/nuxt/15528"]