-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
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
Doesn't load data #190
Comments
Hi @danilovaz ! Got it. This is kinda a hack - but could you try adding this hook to your route?
I'm working on a modularization of Ember Infinity that should fix this, but right now it's not quite ready. |
@hhff Thank's man! That seems to be working, but not completely. See, my API expects a
I can do that? |
also a hack, but try this
|
You saved my life twice. Thank you :) Now I just need to keep it from endlessly load the same items. I have 5 items on the list when it comes on the last item its reloads again from the first item, infinitely. But it's working now. Thank you. As soon as I get free, I'll see what I can help with PR's. |
cool! thankyou! |
I'm using
Ember 2.9.0
and I'm loading a list ofChat
, so I don't know how manytotal_pages
it's have.The first time that renders the
template/index
loads theChat
list with 2 chats. But when I scroll down to, nothing is triggered to fetch the next page.My
page [number]
is not sequential (1,2,3,4) but a random number (3812, 23894, 31283, 47472), maybe that's the problem?I am using
JSONAPI
and the link to the next is like this:And my
routes/chats/index
is this:I'm loading the
template/index
this way:So I try to follow the solution with
modelPath
andBut this doesn't work, when I use
setupController
my model doesn't load data. Any solution to fix this to work withouttotal_page
? Or anything I'm doing wrong?The text was updated successfully, but these errors were encountered: