Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning value of ref imported from other path isn't setup-ref #6825

Closed
sxzz opened this issue Oct 5, 2022 · 0 comments · Fixed by #6826
Closed

Returning value of ref imported from other path isn't setup-ref #6825

sxzz opened this issue Oct 5, 2022 · 0 comments · Fixed by #6826
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. 🐞 bug Something isn't working

Comments

@sxzz
Copy link
Member

sxzz commented Oct 5, 2022

Vue version

3.2.40

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9kM1qwzAQhF9l0cUJxBJpb8Y29D10Sd2142D9oF2nBeN378oOpbSQm3Z29LEzi3qLUd9nVJWqqUtjZCDkObbWjy6GxLBAwh5W6FNwUGjDSKyZCuu74InB0QBN9hyOuxQm1FMYDrIQpTY7VoAyMLo4XRhlAqiv53ZZNsC61kambP+xqJPaTyjdJeobBS9HLvmjfSzIqgo2JWuSIs9WXZkjVcZQ3+VoN9IhDUZeOs2eR4cayZXvKXwSJgFbdfrFMCLeMZUJ/QcmTM+Yf6z/uBm7Wr9KlEdtEgG/tl739nK3DRyO0LRQnF9eC7V+A9njikI=

Steps to reproduce

Open reproduction, and make sure it's in production mode.

The page is empty, then switch to dev mode. It shows 123.

and we could see

/* Analyzed bindings: {
  "ref": "setup-maybe-ref",
  "msg": "setup-ref" // ⬅️ it should be setup-maybe-ref
} */

What is expected?

msg is setup-maybe-ref

What is actually happening?

msg is setup-ref

System Info

N/A

Any additional comments?

No response

@posva posva added 🐞 bug Something isn't working 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Oct 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants