Put in order · Vue.js course · Module 8: Slots & Dynamic Components
Dynamic component lifecycle without KeepAlive
Order what happens when switching a dynamic component WITHOUT KeepAlive:
Items to put in order
- onMounted() - new component created from scratch
- onUnmounted() - old component destroyed (state lost)
- onBeforeUnmount() of the old component
- User clicks the tab change button
You can check the correct answer by solving this task in the CodeWorlds game.