Skip to content

scrolling to the bottom fails with TypeError: Cannot read property 'instruction' of undefined #81

@Thanood

Description

@Thanood

I'm submitting a bug report

  • Library Version:
    1.0.0-beta.3.0.0

Please tell us about your environment:

  • Operating System:
    Windows 8

  • Node Version:
    6.2.2

  • NPM Version:
    3.10.5

  • JSPM OR Webpack AND Version
    JSPM 0.16.15

  • Browser:
    all

  • Language:
    all

Current behavior:

When scrolling down to the bottom of a list, the following exception is thrown:

Uncaught TypeError: Cannot read property 'instruction' of undefined
executeGetMore @ virtual-repeat.js:334
...

I did not use infinite-scroll-next in my app but is seems to be expected at this line.

let func = (this.view(0) && this.view(0).firstChild.au) ? this.view(0).firstChild.au['infinite-scroll-next'].instruction.attributes['infinite-scroll-next'] : undefined;

Expected/desired behavior:

  • What is the expected behavior?

Scroll a list to the bottom and don't get any errors while doing that. 😄

  • What is the motivation / use case for changing the behavior?

I'd like to display a selectable list of users. There may be a few hundreds of them so I'd like to use virtual repeat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions