Close: #7908.
During the hmr reload process, in some cases (such as "ref + v-for"), instance.update will be triggered twice.
instance.update