\n \u003C/div>\n \u003Ctemplate #content>\n ...\n \u003C/template>\n \u003C/UPopover>\n```\n\nDid I do something wrong?\nPlease help me.\nThanks\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3108,3109,3112,3113,3114],{"name":3020,"color":3021},{"name":3110,"color":3111},"needs reproduction","CB47CF",{"name":3023,"color":3024},{"name":3026,"color":3027},{"name":3115,"color":3116},"closed-by-bot","ededed",3303,"open Popover manually","2025-03-25T02:04:46Z","https://github.com/nuxt/ui/issues/3303",0.72008264,{"description":3123,"labels":3124,"number":3129,"owner":3029,"repository":3029,"state":3063,"title":3130,"updated_at":3131,"url":3132,"score":3133},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.20.3\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\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-bf56vz\n\n### Describe the bug\n\nAccording to the [documentation](https://nuxt.com/docs/guide/directory-structure/components#client-components), we can access the rendered template after `await nextTick()` in the callback of the `onMounted` hook. But I found if the parent component of the client-only component is mounted after setting `v-if` as `true`. We can no longer get the ref template after the first `await nextTick()`.\r\n```vue\r\n\u003Cscript setup>\r\nconst mc = ref()\r\n\r\nonMounted(async () => {\r\n await nextTick();\r\n console.log(mc.value.mounted$);\r\n await nextTick();\r\n console.log(mc.value.mounted$);\r\n await nextTick();\r\n console.log(mc.value.mounted$);\r\n await nextTick();\r\n console.log(mc.value.mounted$);\r\n});\r\n\u003C/script>\r\n\u003Ctemplate>\r\n \u003CMyClientComponent ref=\"mc\" />\r\n\u003C/template>\r\n```\r\nwill log as the following:\r\n```\r\nundefined\r\nundefined\r\nfalse\r\ntrue\r\n```\r\n\r\nI don't know whether it is an expected behavior. If so, how do we know when we can get the ref template of the client-only component in the `onMounted` hook?\n\n### Additional context\n\n1. Enter the reproduction\r\n2. Press the `Click to display` button\r\n3. See the log in console\n\n### Logs\n\n_No response_",[3125,3126],{"name":3020,"color":3021},{"name":3127,"color":3128},"🔨 p3-minor","FBCA04",27999,"Client only component not mounted after nextTick","2024-08-12T08:37:45Z","https://github.com/nuxt/nuxt/issues/27999",0.7237951,{"labels":3135,"number":3141,"owner":3029,"repository":3029,"state":3063,"title":3142,"updated_at":3143,"url":3144,"score":3145},[3136,3137,3138],{"name":3086,"color":3087},{"name":3020,"color":3021},{"name":3139,"color":3140},"upstream","E8A36D",12182,"ReferenceError: window is not defined","2023-01-19T15:59:20Z","https://github.com/nuxt/nuxt/issues/12182",0.72787637,["Reactive",3147],{},["Set"],["ShallowReactive",3150],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fJENc-HdeDgX1dUmy3r6MGrIraDrm0b44GhQRAYOIqB8":-1},"/nuxt/ui/3818"]