1π
β
I give you another link, where it is explained: Vue.js: Dynamic & Async Components
I know very little about views and dynamic content, but from what I understood from the documentation, you have to cover your component with a keep-alive
block, which will cause that this component will not be regenerated again. You must consider all the pros and cons of this solution, in particular performance issues, and whether it can be done differently.
I donβt know what your component looks like, so I give an example from the documentation:
<keep-alive>
<my-chat-component></my-chat-component>
</keep-alive>
π€Gander
Source:stackexchange.com