We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
contentProperty
computed
I am wondering why the pagedArray computed helper doesn't pass contentProperty to computed?
pagedArray
ember-cli-pagination/addon/computed/paged-array.js
Line 6 in 2fc16ea
I have a component:
import { alias } from '@ember/object/computed' import Component from '@ember/component' import hbs from 'htmlbars-inline-precompile' import pagedArray from 'ember-cli-pagination/computed/paged-array' export default Component.extend({ tagName: '', content: null, layout: hbs`{{yield (assign pagedContent)}}`, page: 1, perPage: 30, pagedContent: pagedArray('content', { page: alias('parent.page'), perPage: alias('parent.perPage'), }), })
Which when passed a changed content property does not yield back an updated pagedContent property.
content
pagedContent
The problem is fixed by either:
didRecieveAttrs() { this.notifyPropertyChange('pagedContent') }
OR
layout: hbs`{{yield (assign pagedContent foo=content)}}`,
both of which lead me to think maybe the above referenced line is the culprit, but I may be missing some context?
The text was updated successfully, but these errors were encountered:
Try it with Ember 3.12 It seems the problem started with Ember 3.13+
See: emberjs/ember.js#18689
We are working on it and hope to fix it soon.
Sorry, something went wrong.
The fix is merged in Ember Canary See: emberjs/ember.js#18703 So the options are running Ember 3.12 or Ember Canary
No branches or pull requests
I am wondering why the
pagedArray
computed helper doesn't passcontentProperty
tocomputed
?ember-cli-pagination/addon/computed/paged-array.js
Line 6 in 2fc16ea
I have a component:
Which when passed a changed
content
property does not yield back an updatedpagedContent
property.The problem is fixed by either:
OR
both of which lead me to think maybe the above referenced line is the culprit, but I may be missing some context?
The text was updated successfully, but these errors were encountered: