question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

model.canLoadMore not updating

See original GitHub issue

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”

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
snewcomercommented, Dec 23, 2019

Looks like this is something we need to fix! Will try and look before the end of the year.

0reactions
snewcomercommented, Jan 18, 2020

I see! Well give 2.0.3 a try and lmk how it goes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

model.canLoadMore not updating - - Bountysource
When a filter on the model (e.g. a live updating search function) causes the number of documents in a model to increase, and...
Read more >
bootstrap ui modal templateUrl not working - Stack Overflow
I've got a .cshtml view with a section for the modaldialog content. <div data-ng-controller="paymentsOverviewAppCtrl" ng-mvc-pseudoform ng-form ...
Read more >
August 2022 - Aconex Support Central
This release is for: People wanting accreditation for their Aconex skills; Package Admins who need to quickly see distribution lists ...
Read more >
Getting Started Guide - Oracle Help Center
Let others in your organization consume models created in the data lab, and publish insights to ... BDD does not update or delete...
Read more >
Using the Asset Registry | Learn PlayCanvas
We'll also dynamically load a third model that is not preloaded. ... KEY_SPACE)) { if (this.entity.render.asset !== this.b.id) { // update the render ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found