Slide 30
Slide 30 text
History State
•
Keeps only data we need
•
Restores only when the compon
ent reappears by clicking brows
er's history back
•
Components are destroyed nor
mally.
Vue's keep-alive
History State v.s. Vue's keep-alive
•
Keeps the entire state of comp
onents including children
•
Restores whenever the compon
ent reappears
•
Needs to handle hooks in backg
round