Closed mcfiredrill closed 5 years ago
I too am experiencing this issue.
Me too,
ember-cli-pagination: 3.1.3
ember : 3.4.5
ember data : 3.4.2
ember cli : 3.4.3
Second this.
Due to changes in Ember 3.x, this add-on only works with a few adjustments. In your controller, define alias's to the remote paginated array to retrieve the content from the PagedRemoteArray object and an additional alias for the paginator.
ordersPaginator: computed.alias('model.orders'), // this will contain your PagedRemoteArray object. orders: computed.alias('model.orders.content'),
It returns instances of an InternalModel here instead of an actual Model, so this add-on likely requires a new design moving forward. In the meantime, this is a workaround for those who want to upgrade to Ember 3 and maintain existing functionality with ember-cli-pagination.
I have just found this problem after upgrade to 3.5 as well. I've been debugging it for some time and I think the main issue is that init
method of PagedRemoteArray
is not calling this._super(...arguments)
. Once I added it it's working again.
I may create a PR but this project doesn't seem to be very active recently.
Hi thanks for this addon. I'm getting this error with remote pagination.
versions:
route:
api response for tracks:
I can see in the inspector all my models are loading OK. I'm getting this error. I could show you my templates and components, but I think I'm not even hitting that code yet.
Please let me know if I can provide any more info, or if you think I should ask somewhere else...