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
merged 3 commits into from Nov 8, 2022

Conversation

shengxinjing
Copy link
Contributor

fix #6222

@antfu antfu added the ready to merge The PR is ready to be merged. label Oct 3, 2022
@yuntian001
Copy link

yuntian001 commented Nov 9, 2022

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

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

./hooks/test.ts

export default ()=>{
    console.log(1235678);
}
  • 路由组件2
<template>
  <div class="index">
    hello test2
    <input v-model="value" name="text" />
  </div>
</template>
<script setup lang="ts">
const value = ref('');
</script>
  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
zhangzhonghe pushed a commit to zhangzhonghe/core that referenced this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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