-
-
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
Support Server Polling #335
Comments
Perhaps I'm misunderstanding, but how does it 'break data relationships' in the model? Also, if you implement some logic to determine your delta, would |
To be honest, I'm not really sure how it breaks some data relationships, but there are several In the template I have:
Where This properly renders when the infinity model is called, but as soon as I'm still digging into the cause, but it would be great if the I think |
Hi!
I ran into a situation where I want my page to be infinitely scrollable but also populate the top of the page with new objects that come in from the server.
So right now I have an infinity model that successfully loads data, but I have a polling event that refreshes some of the loaded data, which breaks data relationships in the infinity model.
I was able to fix it for my use case, but it would be ideal to incorporate an update option that doesn't break relationships of non-updated objects.
It would be great if I could ask the infinity model to basically make the first call again and have it update the store with new objects, or any objects that have been updated.
Here's the polling code (which is managed by ember-concurrency):
And the infinity model is loaded through a model hook on a route.
I should also note that I'm using cursor based pagination, and the results coming back from the server are already ordered.
The text was updated successfully, but these errors were encountered: