Addepar / Addepar/ember-table

Occulsion doesn't work

Open
#617 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
351
Avg merge
1d 22h
Merged PRs (30d)
1

Description

I have loaded 250+ rows in the ember table. I notice that 30 or 40 load initially and the rest of the space is empty(whitespace), and then as i scroll or wait for a few seconds, all the other rows load together. It doesn't depend on the section that the user is viewing. All the remaining rows load together.

In Edge, i get the 'Not responding' error and the browser gets stuck for a few seconds.

Please let me know what i'm doing wrong?

Used a new Ember project with v2.0.0-beta.4`

{{#ember-table as |t|}} 
     {{#t.head widthConstraint=widthConstraint enableResize=resizeEnabled enableReorder=reorderEnabled resizeMode=resizeMode columns=columns as |h| }} 
        {{#h.row as |r|}} 
            {{#r.cell as |cell column|}} 
                {{#if column.headerComponent}} 
                    {{#component column.headerComponent custom=column.custom}} 
                        {{cell.name}} 
                    {{/component}}
                {{else}} 
                    {{cell.name}} 
                {{/if}}
            {{/r.cell}}
        {{/h.row}} 
     {{/t.head}}
     {{#t.body rows=rows as |b|}}
        {{#b.row as |r|}} 
            {{#r.cell as |cell column|}}
             {{#if column.cellComponent}} 
                {{#component column.cellComponent value=cell clickCell=(action 'clickItem') hoverCell=(action 'hoverItem')}}
                {{/component}} 
             {{else}} 
                {{cell}}
             {{/if}}
            {{/r.cell}} 
        {{/b.row}} 
    {{/t.body}}
{{/ember-table}}
`>`

JS
Any set of column /row configuration with 250+ rows

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a new Ember project using ember-table with 250+ rows and the supplied table configuration. Observe the initial whitespace, delayed row rendering, and Edge's unresponsive state; the issue is resolved when all rows render without the delay or browser freeze.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.