-
Notifications
You must be signed in to change notification settings - Fork 0
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
Posts Loading #22
Comments
goal: when user scrolls to bottom of post list, there is a trigger that leads to the app asking for x more posts. the app waits for these x posts to be added to the list before letting the user scroll further. design choices to consider:
where to look in the code:
|
Might need to adapt some components to PureComponent (like PostData, Post) to prevent FlatList from rerendering nonchanging components. |
Check which components within the post component are rerendering by console logging inside their render funcs. Either way, mobx will not allow pure components to be observers. |
Only load certain posts at a time-- recommended strategy is to keep track of what chunk of posts are currently loaded on frontend and ask the backend for x new posts when the user scrolls to the bottom of the currently loaded chunk.
The text was updated successfully, but these errors were encountered: