({{ asyncDisplay }})\u003C/template>\r\n```\r\n\r\n\r\nBut if I use a computed instead, it works\r\n```vue\r\n\u003Cscript setup>\r\nimport { ref, computed } from 'vue';\r\n\r\nconst display = computed(() => {\r\n return msg.value;\r\n});\r\n\r\nconst msg = ref('Hello world');\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\u003Cinput v-model=\"msg\" /> ({{ display }})\u003C/template>\r\n```\r\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vitejs-vite-9xudtu/?file=src%2FApp.vue\n\n### System Info\n\n```Shell\nAll systems, all browsers, last version of vue and @vueuse\n```\n\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],3838,"closed","computedAsync fails to track dependencies on ref that are not yet declared","2024-03-02T15:07:57Z","https://github.com/vueuse/vueuse/issues/3838",0.63494563,{"description":3157,"labels":3158,"number":3159,"owner":3141,"repository":3141,"state":3151,"title":3160,"updated_at":3161,"url":3162,"score":3163},"### Describe the bug\n\n```ts\r\n// get conf when page on load.\r\nconst conf = useConfStore()\r\n\r\nconst wsURL = computed(() => `${conf?.app.ws_endpoint}/task`)\r\n\r\nconst taskWS = useHttp(wsURL.value, {\r\n onMessage: () => ...\r\n})\r\n```\r\n\r\n> Failed to construct 'WebSocket': The URL 'undefined/client/Z4bOONC8tvPdTVBc7XUJLNHtb5-rKiwIamV9g' is invalid.\r\n\r\nWhen set immediate `false`, and watch `conf` value to open `taskWS` get `undefined` yet.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/unocss-unocss-zkjef1?file=package.json,src%2FApp.vue,src%2Fmain.ts\n\n### System Info\n\n```Shell\nSystem:\r\n OS: macOS 12.6\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz\r\n Memory: 70.45 MB / 8.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 14.19.2 - ~/Library/Caches/fnm_multishells/25267_1653168489651/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 6.14.17 - ~/Library/Caches/fnm_multishells/25267_1653168489651/bin/npm\r\n npmPackages:\r\n @vueuse/components: ^9.12.0 => 9.12.0\r\n @vueuse/core: ^9.12.0 => 9.12.0\r\n @vueuse/integrations: ^9.4.0 => 9.4.0\r\n vue: ^3.2.41 => 3.2.47\n```\n\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],2902,"useWebSocket: ref or computed url not work!馃ゲ","2023-03-23T09:44:45Z","https://github.com/vueuse/vueuse/issues/2902",0.6491883,{"description":3165,"labels":3166,"number":3167,"owner":3141,"repository":3141,"state":3151,"title":3168,"updated_at":3169,"url":3170,"score":3171},"### Describe the bug\r\n\r\nWhen using useDebounceFn with an async callback, if the callback reutrn value type promise.\r\nuseDebounceFn typescript type is wrong.\r\n\r\n```\r\nasync function existsCode(code: string) {\r\n return {\r\n success: true\r\n }\r\n}\r\n\r\nconst debounceExistsCode = useDebounceFn((code) => {\r\n console.log(code)\r\n return existsCode(code)\r\n}, 500)\r\n\r\ndebounceExistsCode('aa').then((result) => {\r\n console.log('result', result)\r\n})\r\n```\r\n\r\n\u003Cimg width=\"512\" alt=\"image\" src=\"https://github.com/vueuse/vueuse/assets/8230415/00daa76c-c773-4878-a4e3-c55bebb719e1\">\r\n\r\nresult is promise\u003C{success:boolean}>\r\n\r\nbut, chrome console show:\r\n\u003Cimg width=\"226\" alt=\"image\" src=\"https://github.com/vueuse/vueuse/assets/8230415/10c327ab-ca3b-4be7-a901-a2cbab019016\">\r\n\r\nreal result is not promise\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpIgAHio2RUxAotQ4AF4ADogbR4RimWmexwKlQEZB5JDIAsAPjz5hUwGApa2KgOBzQrfbeC7B2byeGaeIDeewukRDoWrq0lb-huGlK7FsiAs5gONQ4sxUAHIHTdOXVEPvm7PtRwF+3rCZt0ZdwP9wtz9hmxBkCFbDV+LLRSonp0Mg0jIJKNDaDMNCOMAzYqPBKjWNInDmLBLYIQhyCkFA3A1r20gcOQcEIUO2Ckc2MzYCBVZKgg1Q5ohiBGNoGA+vYzYUfI1E0Kuf6IAAopswGgeBaQMXiK5rtwm7aJBrDQSoOYNq2xHwUhKGAUJIFgfJiBydBzZHCoACspKkux75lrx66CcJOkQfuEAQPu9iTNIug2LJ1hYQY0iOEpKnodWtZwsQhjkJMYDXLo2gFt5pC+WgBYqAA1Do8W+aWIEQOulYAApPsBiCOGl+4lvuqUqAAUgCADyABykwgZI2DwHQRghNoGV+RZ8GUWwQaTF48DaPu3VlYxPl+YZ9iMswkp1GmuCpFG5AxiAcZgAmSa8Km2TEbUKr5iAeDyKwBbEaU8DHUE8B9BQpmkm4lQwGgVAvQ9ZkXS2RhBpsx0AH4qDMBjffBqSbNIx3cCqiAcGDKhgMdjQI6uHA0LmcVrjQVDfU2LbJsgkDmBDUMFgALJsoMgA2bYZuFaTdiORM5fj8GE8T8SemTLADu9HCvbd90AJxmc9AtoN40DBCEn3JXgx3SBQKM0wAsuwkJ0wmpSeIOzPE-jI5jhOzDiJIMhEDQAbYIgBXeMg2hofB2ueL2AIEb4jDEWFBjkL29WkHgOscF7ZGzd2BxAA\r\n\r\n### System Info\r\n\r\n```Shell\r\n\"@vueuse/core\": \"^10.4.1\"\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\npnpm\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://vueuse.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\r\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],3419,"useDebounceFn with an async callback return value. useDebounceFun.then type is wrong.","2023-10-07T07:50:56Z","https://github.com/vueuse/vueuse/issues/3419",0.66890925,{"description":3173,"labels":3174,"number":3175,"owner":3141,"repository":3141,"state":3151,"title":3176,"updated_at":3177,"url":3178,"score":3179},"### Describe the bug\r\n\r\nHi!\r\n\r\nUsing useAsyncState with throwError option throws ref value rather than value.\r\n\r\nhttps://github.com/vueuse/vueuse/blob/main/packages/core/useAsyncState/index.ts#L116-L121\r\n```js\r\ncatch (e) {\r\n error.value = e\r\n onError(e)\r\n if (throwError)\r\n throw error // return ref\r\n}\r\n```\r\n\r\nSinse this [discussion](https://github.com/vueuse/vueuse/discussions/2313), i didn't find any reason if its should be correct.\r\n\r\nI guess it be cool to fix in future 10.x.x version of vueuse.\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vitejs-vite-sfhezc?file=src/App.vue\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 16.14.2 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 7.17.0 - /usr/local/bin/npm\r\n npmPackages:\r\n @vueuse/core: ^9.12.0 => 9.13.0 \r\n vue: ^3.2.47 => 3.2.47\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\nnpm\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://vueuse.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\r\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],2897,"UseAsyncState with throwError","2023-03-23T08:41:26Z","https://github.com/vueuse/vueuse/issues/2897",0.6729499,{"description":3181,"labels":3182,"number":3183,"owner":3141,"repository":3141,"state":3151,"title":3184,"updated_at":3185,"url":3186,"score":3187},"### Describe the bug\n\nif I cope the docs snippet:\r\n```ts\r\nimport { resolveRef } from '@vueuse/core'\r\n\r\nconst foo = ref('hi')\r\n\r\nconst a = resolveRef(0) // Ref\u003Cnumber>\r\nconst b = resolveRef(foo) // Ref\u003Cstring>\r\nconst c = resolveRef(() => 'hi') // ComputedRef\u003Cstring>\r\n```\r\n\r\nand check the type of a it's ComputedRef\u003Cnumber> instead of Ref\u003Cnumber>\r\n\r\n\r\n\r\n> **Note**\r\n> Please check `resolveRef-issue` branch in the reproduction repo\n\n### Reproduction\n\nhttps://github.com/jd-solanki/vueuse-playground/tree/resolveRef-issue\n\n### System Info\n\n```Shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor\r\n Memory: 7.43 GB / 15.95 GB\r\n Binaries:\r\n Node: 18.14.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 9.4.1 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.1413.0), Chromium (111.0.1661.54)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n @vueuse/core: ^9.13.0 => 9.13.0 \r\n vue: ^3.2.47 => 3.2.47\r\n```\n```\n\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],2925,"`resolveRef` always returns `ComputedRef`","2023-04-14T07:42:47Z","https://github.com/vueuse/vueuse/issues/2925",0.6741741,{"description":3189,"labels":3190,"number":3191,"owner":3141,"repository":3141,"state":3151,"title":3192,"updated_at":3193,"url":3194,"score":3195},"### Describe the bug\n\n```\r\n// Valid\r\nconst { data } = await api(`books/${id}`);\r\n\r\n// Not valid\r\nconst { data } = await api(`books/${id}`).get().json\u003CBookResponse>();\r\n```\r\n\r\nNote: This is TS/eslint ruling, bit difficult to reproduce this using a link.\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vitejs-vite-rptfks/\n\n### System Info\n\n```Shell\n$ npx envinfo --system --npmPackages '{vue,@vueuse/*}' --binaries --browsers\r\n\r\n System:\r\n OS: Linux 5.16 Arch Linux\r\n Container: Yes\r\n Binaries:\r\n Node: 17.6.0 - /usr/bin/node\r\n Yarn: 1.22.17 - /usr/bin/yarn\r\n npm: 8.5.2 - /usr/bin/npm\r\n npmPackages:\r\n @vueuse/core: ^7.6.2 => 7.7.0 \r\n vue: ^3.2.31 => 3.2.31\n```\n\n\n### Used Package Manager\n\nyarn\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],1321,"useFetch doesn't play nice with async/await (await-thenable)","2022-03-14T07:28:37Z","https://github.com/vueuse/vueuse/issues/1321",0.6747956,{"description":3197,"labels":3198,"number":3199,"owner":3141,"repository":3141,"state":3151,"title":3200,"updated_at":3201,"url":3202,"score":3203},"### Describe the bug\r\n\r\nCurrently I'm on @vueuse/core version 8.9.4.\r\n\r\nI've been so frustrated that I didn't see my UI update when it was supposed to. So I've been debugging computedAsync by copying it to my own `src` directory and placing a whole bunch of `console.log()` statements everywhere. And here's what I found:\r\n\r\nWhen `current.value` is updated on [line 94](https://github.com/vueuse/vueuse/blob/main/packages/core/computedAsync/index.ts#L94), then [the computed return on line 108](https://github.com/vueuse/vueuse/blob/main/packages/core/computedAsync/index.ts#L108-L111) (since I'm using `lazy`) does not always recompute.\r\n\r\nI honestly have no idea why it wouldn't.\r\n\r\nOne experiment that I did was adding the following code just above the [`return computed`](https://github.com/vueuse/vueuse/blob/main/packages/core/computedAsync/index.ts#L108):\r\n\r\n```ts\r\nwatch(() => current, () => console.log(\"current change detected\", { current })\r\n```\r\n\r\nAnd that `console.log` *always* ran at the right time, so for some reason `watch` is better at tracking `current` than `computed` is.\r\n\r\n### PS\r\n\r\nI'm sorry, the reproduction link I shared is a lie. I don't know how to reproduce the problem exactly, except maybe by giving you guys access to my entire project. But of course that'd be too big for you guys to delve into and also I have an NDA on that project. And even on my own project, the bug doesn't happen *all* the time. But still too often to be acceptable.\r\n\r\nThe best I could offer you for now is [a screencast that demonstrates the problem](https://youtu.be/r7fV0U20z9U). I don't know if that helps, but it's the best I could do.\r\n\r\nI hope that maybe you guys are willing think with me. I'm curious to understand why `computed` wouldn't recompute when `current.value` clearly changes. I'm wondering if it's possible to find out at runtime what that particular `compute` has been able to identify as its dependencies that it will try to track.\r\n\r\nBut most of all I'd appreciate some help with finding a workaround for now. I'm trying to fix this right now by writing my own `customRef`, but this is the first time I'm doing that,, so I'm not 100% sure I'm gonna do that right.\r\n\r\n### edit\r\n\r\nOkay the `customRef` thing didn't work out as I was hoping. One thing I'm trying at the moment is replace [`computed` at line 108](https://github.com/vueuse/vueuse/blob/main/packages/core/computedAsync/index.ts#L108) with this:\r\n\r\n```ts\r\nreturn computedWithControl(current, () => {\r\n started.value = true\r\n return current.value\r\n})\r\n```\r\n\r\nAnd that *seems* to be working, as in everything gets recomputed when it should, except that now I get loads of these errors:\r\n\r\n\u003Cimg width=\"482\" alt=\"image\" src=\"https://user-images.githubusercontent.com/1267282/179739825-acf10ffd-851a-4d2a-bc6a-361a5aa77a3d.png\">\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vitejs-vite-zruu1f?file=src/api.js\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: macOS 12.4\r\n CPU: (8) arm64 Apple M1\r\n Memory: 90.77 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node\r\n npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm\r\n Browsers:\r\n Brave Browser: 89.1.22.71\r\n Chrome: 103.0.5060.114\r\n Safari: 15.5\r\n npmPackages:\r\n @vueuse/core: ^8.9.4 => 8.9.4 \r\n vue: ^3.2.31 => 3.2.31 \r\n```\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\nnpm\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://vueuse.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\r\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],1956,"computedAsync with lazy does not always update when current updates","2022-10-25T22:25:48Z","https://github.com/vueuse/vueuse/issues/1956",0.6771976,{"description":3205,"labels":3206,"number":3207,"owner":3141,"repository":3141,"state":3151,"title":3208,"updated_at":3209,"url":3210,"score":3211},"### Describe the bug\n\npromise is executed when pass options `{ immediate: false }` in useAsyncState\n\n### Reproduction\n\nhttps://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpIgAHio2QAOuYVPBJFQALzpkAAPxqUQoMwM2YgYAoABZC5mVCowAnuAWQDMVTZpOXu4h6sFaMhe12OA2s7p2+JrDZx03air23h5Kw5yoAHyZgAqKGkmeTwzTxHXz2F0iIdC1dWkKmA-huoeQIVsAOkibSBxqHFmKgA5A6bk5OpEF-TNM07ZAbzvSD30YJwACVEAgKgQjguhkCKVhkN8FRPzze9EEfZ8oFfd9tEbGpEGkOxtF-c00WGfZ5BbaBEF0KUaA4SZQh8GYaFtOYEioHVhmJX97AoptuN0GxtBvPN13iSYmOwbR7HsSZJPiGTVPqBSVAgqVEEmLx4HIkAt10dCVHudgDFBbBWBvUo0igQwg1BSIdNMLJpAAQkLdTGAou86CoNAVGwUgIlw4Ks2AS8CDTd8IqMQwbgOTMJIUI4QElOo01wVIo3IGMQDjFik14VMMyzBdpCXFc11KeB2yCeA+goABWUlSTcSoYDQKgBu63q1yMINNnbEsKzXVJNgawtuFHNcwHbRpmoK-t22-fgaCocdNyzZNkEgcx5sWkBa02AxC3XYA72IQxVAOA4D1OiBsCOpsTrO+JPUu5A8H6jhBvazqAE5epBwbvGgYIQlGwsVDwdsew2kB1wAWXYSEHpUBMXMrV73rOo6DyPE9mGnX4iBoANsEQAAFb9Bm0YAKMJzwItfSRsHgOKmyegxyAigA5Ug8Bcjg4oOexGVeoA\n\n### System Info\n\n```Shell\nall systems, all browsers\n```\n\n\n### Used Package Manager\n\nnpm\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],3445,"useAsyncState is not work correct when {immediate: false}","2023-10-09T13:52:57Z","https://github.com/vueuse/vueuse/issues/3445",0.6778337,{"description":3213,"labels":3214,"number":3218,"owner":3141,"repository":3141,"state":3151,"title":3219,"updated_at":3220,"url":3221,"score":3222},"### Describe the bug\r\n\r\nAwaiting useFetch in a computedAsync function or an async watchEffect causes infinite spam of requests.\r\n\r\nI've linked the reproduction below, due note that ones you start it, it will spam requests and your browser will most likely crash if you don't stop immediately.\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vitejs-vite-fkztzg?file=src%2FApp.vue\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 18.20.3 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.2.3 - /usr/local/bin/npm\r\n pnpm: 8.15.6 - /usr/local/bin/pnpm\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\nnpm\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://vueuse.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\r\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[3215],{"name":3216,"color":3217},"documentation","0075ca",4062,"馃悰 Awaiting useFetch in computedAsync causes infinite requests","2025-03-01T09:02:40Z","https://github.com/vueuse/vueuse/issues/4062",0.6806971,["Reactive",3224],{},["Set"],["ShallowReactive",3227],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fXsbdJFyXudczWy9QE8_Rob8rWTxOSCh9AJloeSb8MFU":-1},"/vueuse/vueuse/2954"]