-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed as duplicate of#12914
Description
Vue version
3.5.24
Link to minimal reproduction
Steps to reproduce
Check the playground example and observe that an error appears:
parentComponent.ctx.deactivate is not a function
What is expected?
Instead of an error, it should be switching to a view that says "foobar".
It shouldn't matter whether items is reactive or not.
What is actually happening?
An error breaks the app when App.vue attempts to unmount the Comp1 component:
parentComponent.ctx.deactivate is not a function
Wrapping the value of items in Comp1.vue with reactive(...) fixes it.
System Info
System:
OS: Windows 11 10.0.26100
CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
Memory: 11.80 GB / 31.92 GB
Binaries:
Node: 22.13.1 - C:\Program Files\nodejs\node.EXE
npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 142.0.7444.163
Edge: Chromium (141.0.3537.85)
Firefox: 145.0 - C:\Program Files\Mozilla Firefox\firefox.exe
Internet Explorer: 11.0.26100.1882
npmPackages:
vue: latest => 3.5.24Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels