Login
Remember
Register
Ask a Question
What are state preservation rules in hot reloading?
0
votes
asked
Sep 7, 2023
in
VueJS
by
DavidAnderson
What are state preservation rules in hot reloading?
vuejs-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 7, 2023
by
DavidAnderson
Below are the state preservation rules in hot reloading,
When editing the
<template>
of a component, instances of the edited component will re-render in place, preserving all current private state.
When editing the
<script>
part of a component, instances of the edited component will be destroyed and re-created in place.
When editing the
<style>
hot reload operates on its own via vue-style-loader without affecting application state.
...