Skip to content

model.canLoadMore not updating #396

@Redsandro

Description

@Redsandro

When a filter on the model (e.g. a live updating search function) causes the number of documents in a model to increase, and the total number of documents is so small that the infinityModel is entirely visible so that the infinity-loader component is visible, the model.canLoadMore does not get set to false when there are no more records to load.

E.g.:

{{#infinity-loader infinityModel=model hideOnInfinity=false}}
  {{#if model.canLoadMore}}
    <p>
      Loading
    </p>
  {{/if}}
{{/infinity-loader}}

If changing a filter so that in order you'll see:

  • 100 results -> fine
  • 10 results -> fine
  • 1 result -> fine
  • 2 results -> not fine. Permanently shows "Loading"

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