I am struggling with a bad performance due to high 100% CPU usage in my web application. The application is made with vue(3) components mounted onto a php-page, and I use Vuex for state management. Though websocket the backend server is sending new data several times pr second. I receive these data objects by listening for the event in the "mounting" hook and then dispatching the data through my vuex store in an Action -> Mutation -> Getter In the state object I keep the data as a Map([]).
I guess my overall question is: What is the best way to handle large amount of incoming data with Vue & Vuex?