-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infinity-loader needs to unhide on model change #395
Comments
A workaround is to do check the model manually inside the helper:
But a helper should help, so this is what we're trying to do:
|
@Redsandro Are you looking for the |
I'm glad it's a good idea, but that's not really what I mean. 😅 The short non-# form (second example) is a nice and short When the However, when the I created the above workaround, but it's 700% more lines of code. 🙈 |
This is actually a new and separate issue. Moved to #396 |
I've been struggling with this same problem, and the workaround suggested here worked for me: |
Thank you for the issue! What we ultimately need to do is observe One day, we can move away from observers, but for now I think the referenced PR fixes it. |
Does this mean we can use the one-liner again without wrapping it in |
The
infinity-loader
will stop functioning permanently on infinity whenhideOnInfinity=true
. However, when the model changes and has new content because of a change in filters (similar to #331), theinfinity-loader
should unhide itself because we've no longer reached infinity.I think a property on the model should be watched inside the
infinity-loader
helper. Not sure what that property should be, but probably something likeisLoaded
,isDoneLoading
,canLoadMore
or something that resets when the model changes.The text was updated successfully, but these errors were encountered: