` with `\u003CNuxtPage />`\r\n3. create a file `pages/index.vue`\r\n4. create a useAsyncData call:\r\n\r\n```\r\nconst { data, error } = await useAsyncData('test', async () => {\r\n if (process.server) {\r\n console.log('Server: hi');\r\n } else if (process.client) {\r\n console.log('Client: hi');\r\n }\r\n const response = await $fetch('/api/test')\r\n});\r\n```\r\n\r\n5. create a file `server/api/test.get.ts` with this code:\r\n\r\n```\r\nexport default defineEventHandler(async event => {\r\n console.log('test.get.ts hit')\r\n});\r\n```\r\n\r\n6. `npm run dev` and each time you refresh the page, the console log in terminal will show \r\n\r\n```\r\nServer: hi\r\ntest.get.ts hit\r\ntest.get.ts hit\r\n```\r\n\r\nI've tested this on my main project with a api endpoint that adds a row to the database, and it is adding two rows every refresh. \r\n\r\nI think the problem is that useAsyncData is running the full function both on server and client. It should not be re-fetching the data on client.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2922,2923],{"name":2865,"color":2866},{"name":2868,"color":2869},26049,"useAsyncData is running twice refetching data (server and client)","2024-03-03T08:53:17Z","https://github.com/nuxt/nuxt/issues/26049",0.6364928,{"description":2930,"labels":2931,"number":2936,"owner":2871,"repository":2871,"state":2872,"title":2937,"updated_at":2938,"url":2939,"score":2940},"### Environment\n\n- Operating System: `Linux`\n- Node Version: `v20.16.0`\n- Nuxt Version: `3.17.2`\n- CLI Version: `3.25.0`\n- Nitro Version: `2.11.11`\n- Package Manager: `npm@10.8.1`\n- Builder: `-`\n- User Config: `compatibilityDate`, `typescript`, `devtools`, `experimental`, `modules`, `css`, `app`, `imports`, `vite`, `i18n`, `hooks`, `runtimeConfig`\n- Runtime Modules: `@nuxtjs/tailwindcss@6.12.1`, `@nuxtjs/i18n@9.5.3`, `@vueuse/nuxt@10.11.1`, `nuxt-swiper@1.2.2`, `@pinia/nuxt@0.5.4`\n- Build Modules: `-`\n\n\n### Reproduction\n\nversion 3.17.3\nhttps://stackblitz.com/edit/nuxt-starter-3uel9anh?file=pages%2F%5B...slug%5D.vue\n\nexpected behavior version 3.16.2\nhttps://stackblitz.com/edit/nuxt-starter-huxaragy?file=pages%2F%5B...slug%5D.vue\n\n### Describe the bug\n\nuseAsyncData does not run handler when client routing in version 3.17.\nI relied on previous behavior\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2932,2933],{"name":2868,"color":2869},{"name":2934,"color":2935},"possible regression","B90A42",32116,"regress function useAsyncData in version 3.17","2025-05-17T18:30:15Z","https://github.com/nuxt/nuxt/issues/32116",0.6366249,{"description":2942,"labels":2943,"number":2946,"owner":2871,"repository":2871,"state":2872,"title":2947,"updated_at":2948,"url":2949,"score":2950},"### Environment\r\n\r\n- Operating System: Windows_NT\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.7.4\r\n- CLI Version: 3.9.0\r\n- Nitro Version: 2.6.3\r\n- Package Manager: npm@9.8.1\r\n- Builder: -\r\n- User Config: devtools, modules, build, typescript, supabase\r\n- Runtime Modules: @nuxtjs/supabase@1.1.3\r\n- Build Modules: -\r\n\r\n### Reproduction\r\n\r\nUsing the following code...\r\n\r\n```vue\r\n\u003Ctemplate>\r\n {{ pending }}\r\n\r\n \u003Cinput\r\n @click=\"refresh()\"\r\n type=\"button\"\r\n value=\"Refresh\"\r\n />\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\nconst { data, error, pending, status, refresh } = useFetch(\r\n \"https://jsonplaceholder.typicode.com/todos/1\",\r\n { immediate: false }\r\n);\r\n\u003C/script>\r\n```\r\n\r\n...you will notice that \"pending\" will remain **true** until the request is triggered at least once.\r\n\r\n### Describe the bug\r\n\r\nMaybe it is by design, but I have the feeling pending should stay **false** while not fetching, even in not immediate mode.\r\nA workaround is to use \"status === pending\" in template loaders, but I feel it less straightforward than \"pending\".\r\n\r\n### Additional context\r\n\r\nI hope my English is understandable, and thank you for your amazing work.\r\n\r\n### Logs\r\n\r\n_No response_",[2944,2945],{"name":2865,"color":2866},{"name":2868,"color":2869},23562,"useAsyncData with { immediate: false } returns pending = \"true\" until fired at least once.","2023-10-07T11:05:38Z","https://github.com/nuxt/nuxt/issues/23562",0.63690704,{"labels":2952,"number":2955,"owner":2871,"repository":2871,"state":2872,"title":2956,"updated_at":2957,"url":2958,"score":2959},[2953,2954],{"name":2865,"color":2866},{"name":2868,"color":2869},13366,"useAsyncData doesn't reuse ssr payload on client side","2023-01-19T16:53:36Z","https://github.com/nuxt/nuxt/issues/13366",0.63774174,{"labels":2961,"number":2964,"owner":2871,"repository":2871,"state":2872,"title":2965,"updated_at":2966,"url":2967,"score":2968},[2962,2963],{"name":2865,"color":2866},{"name":2868,"color":2869},13633,"useAsyncData does not update data after first load","2023-01-19T17:02:42Z","https://github.com/nuxt/nuxt/issues/13633",0.63960266,["Reactive",2970],{},["Set"],["ShallowReactive",2973],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$flQ2huj32px9L7i0dcg8-0O1gQuAlaczF5RmIaFG4N4M":-1},"/nuxt/nuxt/22027"]