After migrating to RC8 and 1.0 I can’t do lazy loading anymore. What I do is get maxId
from metadata, and get the model based on that. And the query gets sent and i receive correct data.
Problem is objectData
is empty, while i’m sure that the data was received. And even if there was data, it doesn’t get pushed.
actions:
loadMore: ->
console.log "Loading ..."
model = App.get 'Post'
metadata = App.store.typeMapFor(model).metadata
objectData = model.find max_id: metadata.maxId
# Until here, everything is working fine
@controllerFor('PostsIndex').pushObjects objectData #if objectData.content.length > 0
Is there anything that i need to do for it to work with RC8/1.0 ?