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

fix(runtime-core): keep-alive exclude component in hmrDirtyComponents… #6809

merged 3 commits into from Nov 8, 2022


Copy link

fix #6222

@antfu antfu added the ready to merge The PR is ready to be merged. label Oct 3, 2022
@yyx990803 yyx990803 merged commit bdaf83a into vuejs:main Nov 8, 2022
8 of 9 checks passed
@shengxinjing shengxinjing deleted the keepalive-hmr branch November 8, 2022 06:27
Copy link

yuntian001 commented Nov 9, 2022

@yyx990803 应用当前代码 当两个keepAlive的路由来回切换时有问题

  • 路由组件1 test1.vue
  <div class="index">
    hello test1
    <input v-model="value" name="text" />
    <button @click="test()">console test</button>
<script setup lang="ts" >
import test from './hooks/test';


export default ()=>{
  • 路由组件2
  <div class="index">
    hello test2
    <input v-model="value" name="text" />
<script setup lang="ts">
const value = ref('');
  1. 从路由1切换到路由2
  2. 再从路由2切换回路由1
  3. 修改./hooks/test.ts 文件 会报错(如果不复现 则多切换并更改操作几次)

尝试使用7049 则没有此问题

chrislone pushed a commit to chrislone/core that referenced this pull request Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
ready to merge The PR is ready to be merged.
None yet

Successfully merging this pull request may close these issues.

热更新报错 TypeError: parentComponent.ctx.deactivate is not a function
4 participants