-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
Description
Vue version
3.2.47
Link to minimal reproduction
Steps to reproduce
None. You can observe the issue going away when the ID's in testData are converted to a string.
What is expected?
I would expect Vue to either convert the value it receives to a string if necessary, or throw a more useful error message.
What is actually happening?
Error: "Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function."
System Info
No response
Any additional comments?
I ran into this weird and very specific issue the other day. Basically it involves using the Options API and iterating through an array of objects using v-for
, and using one of the object properties as a dynamic ref. When this property is not a string but a number, there's a pretty cryptic error message that took me a lot of trial and error to figure out.
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.