Vue.js infinite update loop in a component render function

六眼飞鱼酱① 提交于 2020-07-22 10:57:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!