title: What is the best way to save sequence of elements for scrolling forward and backward?
body: <p>I'm creating a screen that shows random posts to user. It has two buttons: &quot;back&quot; and &quot;forward&quot;. &quot;Forward&quot; button loads next post, &quot;back&quot; button shows the previous post. If list of posts is empty, back button is shadowed (non-clickable). I'm looking for making it using two stacks: one for loaded posts on &quot;forward&quot; button and one for loaded posts on &quot;back&quot; button, so you will scroll through loaded posts while getting to the first post, and vice versa.</p>