` 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_",[2882,2883],{"name":2867,"color":2868},{"name":2884,"color":2885},"pending triage","E99695",26049,"useAsyncData is running twice refetching data (server and client)","2024-03-03T08:53:17Z","https://github.com/nuxt/nuxt/issues/26049",0.6172799,{"description":2892,"labels":2893,"number":2898,"owner":2873,"repository":2873,"state":2874,"title":2899,"updated_at":2900,"url":2901,"score":2902},"### 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```",[2894,2895],{"name":2884,"color":2885},{"name":2896,"color":2897},"possible regression","B90A42",32116,"regress function useAsyncData in version 3.17","2025-05-17T18:30:15Z","https://github.com/nuxt/nuxt/issues/32116",0.6245655,{"description":2904,"labels":2905,"number":2908,"owner":2873,"repository":2873,"state":2874,"title":2909,"updated_at":2910,"url":2911,"score":2912},"### Environment\n\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v18.16.0\r\n- Nuxt Version: 3.6.2\r\n- Nitro Version: 2.5.2\r\n- Package Manager: pnpm@8.5.1\r\n- Builder: vite\r\n- User Config: ssr, pages, srcDir, routeRules, experimental, devtools, alias, typescript, css, app, modules, unocss, imports, components, vite\r\n- Runtime Modules: @pinia/nuxt@0.4.11, @vueuse/nuxt@10.2.1, @unocss/nuxt@0.53.4, @vue-macros/nuxt@1.3.12, nuxt-vitest@0.8.7\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\n- Github repo : https://github.com/ChronicStone/repro-issue-nuxt-useAsyncData\r\n- Live version : https://repro-issue-nuxt-use-async-data.vercel.app/\n\n### Describe the bug\n\nSince upgrating to v3.6.2, useAsyncData has inconsistent & strange behaviour.\r\nI found two main strange behaviours : \r\n\r\n### SCENARIO 1 : \r\n\r\nHere the data load once, but then the function that resolves it never runs again, no matter how the watch dependencies change.\r\n\r\nAlso, if I have the following route : `/users/profile/:userId()`\r\nWhen first visiting the page, the data will be resolved correctly if it's not already populated. If I come back to the route with a different ID, it won't re-trigger the resolver at all. I need to do a full page reload to have it resolve the correct data.\r\n\r\n### SCENARIO 2 : \r\n\r\nThe data does not load at first, and stays empty. Then, if a dependency change, it will refresh correctly.\r\n\r\n----\r\n\r\nThe reproduction provided includes the 2nd scenario, I couldn't reproduce the 1st case on a minimal setup yet. An other interesting is that on both case, devtools is completely bugged on these two cases, hitting refresh there won't do anything. You can also observe this in the provided minimal reproduction\n\n### Additional context\n\nFirst here's the context on which i'm using it\r\n- `ssr: false` in config\r\n- I'm not awaiting the useAsyncData on my component\r\n\r\nHere's an example of how i'm using it in-app : \r\n\r\n```ts\r\nconst periodFilters = ref\u003C{ month: number; year: number }>({ month: 1, year: 1 });\r\n\r\nconst { data, pending } = useAsyncData(\r\n \"assessmentCountStats\",\r\n () => StatisticsController.getAssessmentStatusCount(props.clientId, periodFilters.value),\r\n { watch: [() => props.clientId, () => periodFilters.value.year, () => periodFilters.value.month] }\r\n);\r\n```\r\n\r\nAlso worth mentionning that if I switch back to 3.6.1, everything works fine, data always update according to dependency & load correctly.\n\n### Logs\n\n_No response_",[2906,2907],{"name":2867,"color":2868},{"name":2884,"color":2885},22027,"useAsyncData has inconsistent behaviour (ssr:false) since v3.6.2","2023-07-11T07:02:52Z","https://github.com/nuxt/nuxt/issues/22027",0.62793815,{"description":2914,"labels":2915,"number":2920,"owner":2873,"repository":2873,"state":2874,"title":2921,"updated_at":2922,"url":2923,"score":2924},"\u003C!-- 💚 Thanks for your time to make Nuxt better with your feedbacks 💚\r\n\r\n**IMPORTANT** Before reporting a bug:\r\n\r\n- Please make sure that you have read through Nuxt documentation: https://nuxtjs.org\r\n- If issue is related to a module please create the issue in corresponding repository\r\n- Ensure using latest version of nuxt dependencies using `yarn upgrade nuxt` or `npm upgrade nuxt`\r\n\r\n👍 A properly detailed bug report can save a LOT of time and help fixing issues as soon as possible.\r\n-->\r\n\r\nHi, I just realized that `asyncData` and `nuxtServerInit` was called twice (two time for asyncData and two time for nuxtServerInit).\r\nI tried on nuxt v2.14.6 and nuxt 2.14.11 (latest) but no luck.\r\nI was successful to reproduce this behaviour on new `create nuxt app` created by command `npx create-nuxt-app new-nuxt`.\r\nYou can check it on my reproduce repository below.\r\n\r\n**Additional**: I tried both dev run and production build.\r\n\r\n\r\n### Versions\r\n\r\n- nuxt: tried 2.14.6 and 2.14.11 \u003C!-- ex: v2.13.0 -->\r\n- node: v12.14.0\r\n\r\n### Reproduction\r\nReproduce repo: https://github.com/bahung1221/nuxt-bug-reproduce\r\n\r\n\u003C!--\r\nLink to a minimal test case based on one of:\r\n- A fork of https://template.nuxtjs.org\r\n- A GitHub repository that can reproduce the bug\r\nWithout a reproduction, it is so hard to address problem :(\r\n-->\r\n\r\n\u003Cdetails open>\r\n\u003Csummary>Additional Details\u003C/summary>\r\n\u003Cbr>\r\n\u003C!-- Attaching `nuxt.config`, dependencies, logs or code snippets would help to find the issue -->\r\n\u003C/details>\r\n\r\n### Steps to reproduce\r\n- `npx create-nuxt-app new-nuxt`.\r\n- Add asyncData to `pages/index.vue`.\r\n- Try to console log anything.\r\n\r\n### What is Expected?\r\n`nuxtServerInit` should be called only one for each request, I normally get user data from API server through nuxtServerInit so it doesn't necessary to get the same data two times for each page load.\r\n\r\n### What is actually happening?\r\n`nuxtServerInit` and `asyncData` was called twice.\r\n",[2916,2917],{"name":2884,"color":2885},{"name":2918,"color":2919},"2.x","d4c5f9",8491,"both nuxtServerInit and asyncData was called twice","2023-01-22T15:38:24Z","https://github.com/nuxt/nuxt/issues/8491",0.62921864,{"labels":2926,"number":2929,"owner":2873,"repository":2873,"state":2874,"title":2930,"updated_at":2931,"url":2932,"score":2933},[2927,2928],{"name":2867,"color":2868},{"name":2884,"color":2885},13633,"useAsyncData does not update data after first load","2023-01-19T17:02:42Z","https://github.com/nuxt/nuxt/issues/13633",0.63337415,{"description":2935,"labels":2936,"number":2939,"owner":2873,"repository":2873,"state":2874,"title":2940,"updated_at":2941,"url":2942,"score":2943},"### Environment\r\n\r\n- Operating System: Darwin\r\n- Node Version: v20.2.0\r\n- Nuxt Version: 3.12.1\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.6\r\n- Package Manager: pnpm@9.3.0\r\n- Builder: -\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n\r\n### Reproduction\r\n\r\n[Codesandbox link](https://codesandbox.io/p/devbox/asyncdata-deduplication-bug-2ywm5w?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clxdgf65800073b6jeonz2s2q%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clxdgf65800023b6j09sj83ci%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clxdgf65800043b6jiezwwyiw%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clxdgf65800063b6ju6e6pzsm%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clxdgf65800023b6j09sj83ci%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clxdgf65700013b6jbkfgrlj5%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522clxdgf65800023b6j09sj83ci%2522%252C%2522activeTabId%2522%253A%2522clxdgf65700013b6jbkfgrlj5%2522%257D%252C%2522clxdgf65800063b6ju6e6pzsm%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clxdgf65800053b6j3f7t5aal%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clxdgf65800063b6ju6e6pzsm%2522%252C%2522activeTabId%2522%253A%2522clxdgf65800053b6j3f7t5aal%2522%257D%252C%2522clxdgf65800043b6jiezwwyiw%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clxdgf65800033b6jovogrjn0%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%255D%252C%2522id%2522%253A%2522clxdgf65800043b6jiezwwyiw%2522%252C%2522activeTabId%2522%253A%2522clxdgf65800033b6jovogrjn0%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D)\r\n\r\n- reload page\r\n- view server logs, `callback log` message should be printed\r\n- view client logs, `callback log` message should not be printed, but it is printed\r\n\r\n### Describe the bug\r\n\r\nWhen useAsyncData callback returns any falsy value(undefined, null, 0, false) that causes callback to execute both server and client side when only server side is expected\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2937,2938],{"name":2867,"color":2868},{"name":2884,"color":2885},27594,"useAsyncData unexpected behaviour when callback return falsy value","2024-11-13T17:05:30Z","https://github.com/nuxt/nuxt/issues/27594",0.6336765,{"description":2945,"labels":2946,"number":2948,"owner":2873,"repository":2873,"state":2874,"title":2949,"updated_at":2950,"url":2951,"score":2952},"### Environment\r\n\r\n- Operating System: Windows_NT\r\n- Node Version: v20.10.0\r\n- Nuxt Version: 3.12.3\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.7\r\n- Package Manager: npm@10.2.3\r\n- Builder: -\r\n- User Config: devtools, compatibilityDate, app, dir, alias, modules, css, hooks, viewport, image, primevue, content, vite\r\n- Runtime Modules: @nuxt/eslint@0.3.13, @nuxt/image@1.7.0, nuxt-viewport@2.1.5, nuxt-primevue@3.0.0, @nuxt/content@2.13.2, @pinia/nuxt@0.5.3, @pinia-plugin-persistedstate/nuxt@1.2.1\r\n- Build Modules: -\r\n\r\n### Reproduction\r\n\r\nhttps://codesandbox.io/p/devbox/compassionate-sammet-n7qj63\r\n\r\n### Describe the bug\r\n\r\nIm using page transition and when navigate for example from **\"user/1\"** to **\"user/2\"** page, my in page useAsyncData load some data from API's and update it **before new page transition comes in**. So, first the user sees the updated data and then the animation transition. This behavior causes ugly data flashes. It is normal or how to deal with it?\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2947],{"name":2884,"color":2885},28913,"Page Transitions not synchronized with useAsyncData","2024-09-11T08:03:25Z","https://github.com/nuxt/nuxt/issues/28913",0.6364808,{"description":2954,"labels":2955,"number":2958,"owner":2873,"repository":2959,"state":2874,"title":2960,"updated_at":2961,"url":2962,"score":2963},"When using `useAsyncData`, the http call is made on server and on client.",[2956],{"name":2870,"color":2957},"ff281a",44,"nuxt.com","[Nuxt3] Async data called twice","2023-01-19T16:58:58Z","https://github.com/nuxt/nuxt.com/issues/44",0.63743293,{"description":2965,"labels":2966,"number":2958,"owner":2873,"repository":2970,"state":2874,"title":2971,"updated_at":2972,"url":2973,"score":2963},"- [x] [Crisp](https://crisp.chat/en/) - https://github.com/nuxt/scripts/pull/128\r\n- [x] [Intercom](https://www.intercom.com/) - https://github.com/nuxt/scripts/pull/129\r\n- [ ] [Messenger](https://www.facebook.com/business/goals/add-live-chat-to-website-with-messenger)\r\n\r\nSimilar to https://github.com/calibreapp/react-live-chat-loader",[2967],{"name":2968,"color":2969},"enhancement","a2eeef","scripts","Live Chat Integrations with Facade Components","2024-09-03T10:01:39Z","https://github.com/nuxt/scripts/issues/44",["Reactive",2975],{},["Set"],["ShallowReactive",2978],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fY7DBFqpZEtNhH0RZOtuMB8q3SkTxdHyzkj427kY5JnI":-1},"/nuxt/nuxt/13460"]