Skip to content

Rebinding List to New Array, List Still Shows Some of the Old Items #89

@FunkMonkey33

Description

@FunkMonkey33

I'm submitting a bug report

  • Library Version:
    major.minor.patch-pre
    1.0.0-beta.3.0.1

Please tell us about your environment:

  • Operating System:
    Windows 7

  • Node Version:
    6.9.0

  • NPM Version:
    3.10.8

  • **JSPM
    JSPM 0.16.45

  • Browser:
    Chrome

  • Language:
    ES6

Current behavior:
When you rebind the virtual list to a new array,
e.g. this.myArray = getNewData()
Then the list rebinds, but some of the items from the old array are still present.

  • What is the expected behavior?
    Not that! List should only contain new items after a rebind.

  • What is the motivation / use case for changing the behavior?
    I'm using the virtual-repeat.for list to display search results. If they enter a new search, I want the old results to go away, and the new results to display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions