Skip to content

Ref returned from composition outside of script setup no longer works after version 3.2.8 #4546

@maxxcs

Description

@maxxcs

Version

3.2.11

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  1. In SFC Playground, open the console;
  2. Click on "Hello" div.

What is expected?

It should appear in the console "clicked" and then "has value".

What is actually happening?

Only "clicked" appears .


In dev this works normally, but in build the container.value in useSomething remains null. Before version 3.2.8 it worked in both dev and build. I believe it may be related to #4492

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workinghas workaroundA workaround has been found to avoid the problemscope: compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions