We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.4
https://github.com/meikang123/vue3.0.git
<template> <section class="section"> <h2>不会刷新页面</h2> <button @click="change">点击增加状态值</button> <p>改变这个元素内容、保存-状态不会丢失、内容:4567</p> <p>状态值:{{ count }}</p> </section> </template> <script lang="ts"> import { defineComponent, ref } from 'vue'; export default defineComponent({ name: 'App', setup() { const count = ref(0); const change = () => { count.value = 1; }; return { count, change }; } }); </script>
import { defineComponent, ref } from 'vue'; export default defineComponent({ name: 'App', setup() { const count = ref(0); const change = () => { count.value = 1; }; return () => ( <section class="section"> <h2>不管组件多深层都会刷新页面</h2> <button onClick={change}>点击增加状态值</button> <p>改变这个元素内容、保存状态会丢失、内容:121</p> <p>状态值:{ count.value }</p> </section> ); } });
hot update
no hot update
vue devtools 无法审查第二种的数据
The text was updated successfully, but these errors were encountered:
Read the link I sent you at #2776 (comment):
Sorry, something went wrong.
No branches or pull requests
Version
3.0.4
Reproduction link
https://github.com/meikang123/vue3.0.git
Steps to reproduce
hot update
yarn dev:index
no hot update
yarn dev:main
What is expected?
hot update
What is actually happening?
no hot update
vue devtools 无法审查第二种的数据
The text was updated successfully, but these errors were encountered: