-
-
Notifications
You must be signed in to change notification settings - Fork 129
model.canLoadMore not updating #396
Copy link
Copy link
Open
Description
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"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels