aframe state组件:在删除bind为生成的实体时未调用remove函数

aframe state组件:在删除bind为生成的实体时未调用remove函数,aframe,Aframe,我有这样的模板: <a-entity bind-for="for: item; in: creatures; key: id; updateInPlace: true"> <template> <a-entity bind-item__uw-id="item.id" bind-item__position="item.position" bind

我有这样的模板:

<a-entity bind-for="for: item; in: creatures; key: id; updateInPlace: true">
  <template>
    <a-entity 
        bind-item__uw-id="item.id"
        bind-item__position="item.position"
        bind-item__rotation="item.rotation"
        bind-item__scale="item.scale"
        bind-item__uw-name="item.name"
        bind-item__gltf-model="item.url"
        animation-mixer></a-entity>
  </template>
</a-entity
然后,当我将事件分派到该状态时,我得到以下错误:

Uncaught TypeError: Cannot read property 'emit' of null
    at NewComponent.renderItemsInPlace (aframe-state-component.js:954)
    at NewComponent.<anonymous> (aframe-state-component.js:906)
    at NewComponent.onStateUpdate (aframe-state-component.js:1039)
    at NewSystem.<anonymous> (aframe-state-component.js:367)
Uncaught TypeError:无法读取null的属性'emit'
在NewComponent.renderItemsInPlace(aframe state component.js:954)
在NewComponent。(aframe state component.js:906)
在NewcomComponent.onStateUpdate(aframe state component.js:1039)
在新闻系统。(aframe state component.js:367)
这是因为没有要更新的实体,但状态中仍有订阅服务器。显然,没有为模板循环生成的实体调用
remove()
函数(所有其他订阅者都消失了)。以前,我只是通过调用
removaframenties('a-entity')来删除实体,我试图显式删除生成的实体和具有bind for属性的实体,但这并没有解决我的问题。我做错了什么

更新

刚刚检查了组件代码,结果发现bind for和bind item组件甚至没有
remove()
函数。他们应该如何被移除

Uncaught TypeError: Cannot read property 'emit' of null
    at NewComponent.renderItemsInPlace (aframe-state-component.js:954)
    at NewComponent.<anonymous> (aframe-state-component.js:906)
    at NewComponent.onStateUpdate (aframe-state-component.js:1039)
    at NewSystem.<anonymous> (aframe-state-component.js:367)