[Vuejs]-How to avoid websocket clients duplicated using vuejs

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

Leave a comment