Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
Remember state and scroll position when the user hits "back"
Post Flair (click to view more posts with a particular flair)
Post Body

I am working on an ecommerce app and the general flow is the following:

  1. A user scrolls through a long list of products (fetching more products when they scroll to the bottom)
  2. A user clicks a specific product to see the product detail page
  3. User adds that product to the cart
  4. They hit back and they start at the beginning of the long list of products

I'm trying to think of the best way to solve this hassle. There's two problems I have:

  1. When the user hits back the scroll position is lost
  2. When they hit back those further paginated results are lost and must be refetched

I'm not sure the angular way to solve this problem. If I were coding in react redux I would have no problem loading up this data, but I just really don't want to have to implement redux on my angular stack. Any help would be appreciated!

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,760
Link Karma
4,260
Comment Karma
5,157
Profile updated: 5 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago