ember-table icon indicating copy to clipboard operation
ember-table copied to clipboard

Manipulating with columns leads to "Assertion Failed: Cannot create a new chain watcher for `<(unknown):ember1140>` after it has been destroyed."

Open bedrosenator opened this issue 6 years ago • 2 comments

In component I tried to render(or not) cell depending on isVisible value I got an error "Assertion Failed: Cannot create a new chain watcher for <(unknown):ember1140> after it has been destroyed."

    {{#h.row as |r|}}
      {{#if r.columnValue.isVisible}}
        {{#r.cell
          as |column|
        }}
          {{#if column.headerComponent}}

            {{#component
              column.headerComponent
              clickAction=(action (if column.headerComponentAction column.headerComponentAction 'headerClickAction') column.valuePath column.isSortable)
              className=column.className
            }}
              {{column.name}}
            {{/component}}

          {{else}}
            {{column.name}}
          {{/if}}

        {{/r.cell}}
        {{/if}}
    {{/h.row}}


    {{#if r.columnValue.isVisible}}
        {{#r.cell
          onClick=tableClick
        as |cell column row cellMeta columnMeta rowMeta|
        }}

          {{#if column.cellComponent}}
            {{component column.cellComponent className=column.className}}
          {{else}}
            {{cell}}
          {{/if}}

        {{/r.cell}}
      {{/if}}

bedrosenator avatar Dec 11 '18 11:12 bedrosenator

Are your rows an ember-data hasMany? Could one of them have been unloaded before the error? There are some open issues with that in Ember Data right now. Might apply to peekAll recordArrays too

miketervela avatar Jan 17 '19 18:01 miketervela

@bedrosenator When you have a chance, can you try upgrading to 2.0.0-beta.8 (or a newer release if applicable) and see if that fixes your issue?

bantic avatar Jul 19 '19 18:07 bantic