This PR adds data fetching logic to Home and Account page components. This is a first step of moving away from having such logic in App components.
When Home component is mounted, list of following accounts is fetched if the user is authenticated, otherwise a list of default accounts is retured. For each following account a real-time connection is opened. Since openDBChannel does not have a limit option, all memos are streamed and "Show more" button inserts more of them into the DOM.
This PR adds data fetching logic to Home and Account page components. This is a first step of moving away from having such logic in App components.
When Home component is mounted, list of
following
accounts is fetched if the user is authenticated, otherwise a list of default accounts is retured. For each following account a real-time connection is opened. SinceopenDBChannel
does not have alimit
option, all memos are streamed and "Show more" button inserts more of them into the DOM.https://youtu.be/bNWVmt2giTU