ember-cli-pagination
ember-cli-pagination copied to clipboard
Triggering events on paginated remote
I've run into a situation where I want to know when the paginate-remote-array starts loading in fetchContent
and when it ends. I'm not sure with the current execution that there's a way to then()
the promise that is created internally.
There seems to be two places where PaginatedRemoteArray
s are created. The initial load is created in the remote mixin in findPaged
. This first call is certainly then
able, but successive calls are then created inside the paginated-remote-array class do not have a mechanism for observing or then'ing.
My questions:
- how can we redesign this system so it uses a single source for the promise, making all promises consistently
then
'able. - should we add additional triggers to the remote-array instead?
Similar issue here: https://github.com/mharris717/ember-cli-pagination/issues/88
@typeoneerror, have you found any workaround?
@typeoneerror, I've found a solution for it. Look at the comment: https://github.com/mharris717/ember-cli-pagination/issues/88#issuecomment-301304634