问题
In composition to this issue which has been solved. If I open multiple browser sessions with different users, it gets too buggy. composition post
startedTyping will call back-end service and Vuex store it.
In the view I get a list of who-is-typing, loop through it and display it on a condition.
stoppedTyping will remove the previous value from the store.
EDIT
In the view:
<template v-for="(typer,key) in typings">
<p v-if="condition(typer)" v-bind:key="key">
{{typer.name}}
</p>
</template>
来源:https://stackoverflow.com/questions/62968511/vue-js-infinite-update-loop-in-a-component-render-function