emission icon indicating copy to clipboard operation
emission copied to clipboard

[Home] Automatically refresh content

Open alloy opened this issue 8 years ago • 5 comments

How often should we do this?

Some content is pretty static, but other rails can change any time depending on artwork saves/artist follows.

Can we easily refetch only certain rails?

alloy avatar Sep 02 '16 11:09 alloy

Appending some thoughts from discussion with @alloy :

There are two ways we can refresh content: when the user pulls to refresh, and on our own without a corresponding user interaction. Some rails, like Saved Works and Related Artist, should be updated every time the user pulls-to-refresh. Others only change daily or weekly, such as Works by Artists You Follow and Featured Auctions.

The current pull-to-refresh will forceFetch all rails every time, but it should actually be forceFetching only the rails that might have frequent updates. Also, the entire home view should be refreshed periodically so it doesn't get stale.

sarahscott avatar Sep 13 '16 11:09 sarahscott

See discussion in #293

We still need to figure out a way to refresh all content daily.

sarahscott avatar Sep 19 '16 12:09 sarahscott

Personally, couldn't get this to work for today :(.

mennenia avatar Oct 19 '16 16:10 mennenia

This requires quite some native module code to hook into notifications re the app moving to the foreground and the VC appearing.

alloy avatar Oct 19 '16 19:10 alloy

Not an easy one; something that could be revisited after we figure out updates for Inbox.

sarahscott avatar Aug 11 '17 12:08 sarahscott