Skip to content
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

Build a RealmListViewDataSource #142

Closed
alazier opened this issue Nov 16, 2015 · 3 comments · Fixed by #199
Closed

Build a RealmListViewDataSource #142

alazier opened this issue Nov 16, 2015 · 3 comments · Fixed by #199
Assignees

Comments

@alazier
Copy link
Contributor

alazier commented Nov 16, 2015

Right now users need to copy data when using the built in ListViewDataSource which is not performant. We should be taking advantage of Realm's lazy load architecture by better integrating with this component. If possible we should do this in a general way so that we can achieve the same benefits with other components as well.

@alazier
Copy link
Contributor Author

alazier commented Nov 16, 2015

I think we should start working on this sooner rather than later - so far we have had two beta users asking about better integration with components. Also see #140

@appden
Copy link
Contributor

appden commented Nov 17, 2015

This pretty much duplicates #25

@alazier alazier added beta and removed T-Duplicate labels Nov 24, 2015
@alazier alazier removed the P2 label Dec 8, 2015
@corbt
Copy link

corbt commented Dec 26, 2015

This would be really helpful for our app. The only way I've found to update a ListView backed by realm-js is by doing a deep copy of the data on each re-render, which obviously isn't ideal from a performance standpoint. Perhaps just as importantly, the developer experience would also be nicer if I didn't have to worry about this -- currently it takes a lot of thought to make sure I'm covering all the edge cases of places where data could go stale in the realm-to-Listview mapping. It would free up a lot of brain cycles to just be able to declaratively connect those components up and not worry about invalidation logic. :)

I suspect the same issue will come up in other pages in our app where we want to hook realm result objects up to different displays and expect them to update automatically, but we haven't built that out so far so I can't give any explicit feedback. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants