\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```",[2956,2957,2960,2961,2962],{"name":2879,"color":2880},{"name":2958,"color":2959},"needs reproduction","CB47CF",{"name":2882,"color":2883},{"name":2885,"color":2886},{"name":2963,"color":2964},"closed-by-bot","ededed",3303,"open Popover manually","2025-03-25T02:04:46Z","https://github.com/nuxt/ui/issues/3303",0.72008264,{"description":2971,"labels":2972,"number":2977,"owner":2868,"repository":2868,"state":2911,"title":2978,"updated_at":2979,"url":2980,"score":2981},"### 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_",[2973,2974],{"name":2879,"color":2880},{"name":2975,"color":2976},"🔨 p3-minor","FBCA04",27999,"Client only component not mounted after nextTick","2024-08-12T08:37:45Z","https://github.com/nuxt/nuxt/issues/27999",0.72379506,{"labels":2983,"number":2989,"owner":2868,"repository":2868,"state":2911,"title":2990,"updated_at":2991,"url":2992,"score":2993},[2984,2985,2986],{"name":2934,"color":2935},{"name":2879,"color":2880},{"name":2987,"color":2988},"upstream","E8A36D",12182,"ReferenceError: window is not defined","2023-01-19T15:59:20Z","https://github.com/nuxt/nuxt/issues/12182",0.72787637,["Reactive",2995],{},["Set"],["ShallowReactive",2998],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fJENc-HdeDgX1dUmy3r6MGrIraDrm0b44GhQRAYOIqB8":-1},"/nuxt/ui/3818"]