ember-cli-pagination icon indicating copy to clipboard operation
ember-cli-pagination copied to clipboard

Triggering events on paginated remote

Open typeoneerror opened this issue 8 years ago • 3 comments

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 PaginatedRemoteArrays are created. The initial load is created in the remote mixin in findPaged. This first call is certainly thenable, but successive calls are then created inside the paginated-remote-array class do not have a mechanism for observing or then'ing.

My questions:

  1. how can we redesign this system so it uses a single source for the promise, making all promises consistently then'able.
  2. should we add additional triggers to the remote-array instead?

typeoneerror avatar Feb 24 '17 18:02 typeoneerror

Similar issue here: https://github.com/mharris717/ember-cli-pagination/issues/88

typeoneerror avatar Feb 24 '17 21:02 typeoneerror

@typeoneerror, have you found any workaround?

lancedikson avatar May 12 '17 15:05 lancedikson

@typeoneerror, I've found a solution for it. Look at the comment: https://github.com/mharris717/ember-cli-pagination/issues/88#issuecomment-301304634

lancedikson avatar May 14 '17 10:05 lancedikson