when the v-for directive is used on <keep-alive></keep-alive>, if it is a constant , an error will be reported when switching tabs. #12914
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
has workaround
A workaround has been found to avoid the problem
scope: keep-alive
Vue version
3.5.13
Link to minimal reproduction
https://play.vuejs.org/#eNrFVc1y2jAQfpUdXwgTYje0J+owBaaHNk3baXPDHIQtiBJZ0kgykGF4gz5S36mv0JUsDG5+Ztppp1zAu99+3m/3k9hGI6XiVUWjQZSaXDNlwVBbqWEmWKmktrDVdNHLZakqS4sdLLQsoYMVnQYxweQoJOLEPznKNmDcAowfAiYtwCQAMpFLYSyQ3LIVvaT3cAHY0EkWWTI/z6Lu6zbC1RrE7Bs+OenCxRC2mQCss5UWwASz12TukFJQYa+Imjb08Yrwis6Qdeeo9+SP1OBLPKvrYwBTL7vntc16Id4P8YmL7DxdkoC88181cUk2H6hY2pugq9+FBvIQMT3v9Wcxrx8DLrDmRNgOLm/NbH7jXv7j+7c14xzWRAsmluBRWQSKaBTQKIlzu4kL6gdALAVmQEicJiwqgTEpsGY/heNW+oCMaVJ7Bt2CD5aWiiMHPgGkBVtBzokxF1lU0FJmkY9jhpM55cOUCdwQ2HtFEaFJwRACq7NSFpRjpFmJi7qlYKzeOSRDP/U0qZn+Bm2/oe0faGtiSC8pVSOOZSGAn9XZQmosZcUGzXGYjBuWB4SusNpZ0Y/6UD1gbipHjp0iz9n5rKmGYYrrD3V7gUnTRz3hBEeMv9LkaPBRL2oO4DNn2nkN2od5v+RcVsIGN77oPr9jNZxU2tnJnzff7ABGaeJehWmjiBh6vgFst4F5t0NGl/CQeWUteuxNzll+hzPxmNNTNMtpmtTJJyT6K+T3JAYXm2WQ1+n8ib5xW98VNYYs3cHxIh17W2JtyIMDEeHPwq+irMH+FmwZ3xopUJi/XdxESsU41Z+UO40mi/A1tSHQQZzL9Xsfs7qi/t7xNTc0v3skfms2LpZFnzU1VKOhoyZniV5SW6fffv1IN/i7SWLvFUf0M8kv1EheuR5r2LgSBbZ9hPPdvvPrwQvp2rzdWCrMXpRr1CF3Hp9FuDK35qekH9p9Gb/ydXjFBmv4P4//5P7Jv3b/7if4e5r9
Steps to reproduce
step1: click tab2
When the v-for directive is used on , if it is a constant , an error will be reported when switching tabs.
What is expected?
no error
What is actually happening?
parentComponent.ctx.deactivate is not a function
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: