Subscribe on changes!

why ref in compoent get dom is empty

avatar
Feb 23rd 2024

Vue version

3.4.19

Link to minimal reproduction

https://play.vuejs.org/#eNqNU01r3DAQ/StTXbyBrU1pT8G70JZAW2hakkIvuhh71utUlow+3AXj/56R5LU3m8+DwTPvaebN02hgn7su7R2yS5abUjedBYPWdVsum7ZT2sJX1Xaw06qFJM184OnJDF+rW7QzLn3kzigDKPlTOWmxWoPGHYwTP7K4LJU0FlpTw8bjq+QbCqHgr9KiepdcLJSS2t9QgUgjIKanrg8QLuemq9UFbLYwcAlUQRolMBWqXiVTuWR9LJz2hXBIp8+ISwPiLsFMH+nLs+gfOUeBxbYThUWKAPL9h+0whAHHMc8oCtlGds5C/75VFYoNZ4RzBlkEg+00C+UncZxNULQ8YouYCOfZSWe2ZtbQILumTu+MknTJwYRYshGof3W2oUE5u4z2eKwg7///CDmrHa6P+XKP5b8n8nfm4HOc/dZoUPfI2YzZQtdoI3x1e40H+p9BmtsJYr8A3iBdgvMaI+2LkxXJPuEFtd/DojWy/mOuDhalOQ7lhXrmGPic0cZ5Y58bfZH7Mf0UztHdkovHtX/ilTzYk31h/OKQAuvX9qWVqJo+/ADQoVAspLOYP7/Gk3f1SMPbukj1SpPxHsgBXqk=

Steps to reproduce

see console, setup has content ref no conent

What is expected?

custom compoent ref can get com

What is actually happening?

custom compoent has setup ref can not get com

System Info

No response

Any additional comments?

i remember old version is correct,because i old project use this method。I don't think this kind of ref should be exported with defineExpose