emission
emission copied to clipboard
[Home] Automatically refresh content
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?
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 forceFetch
ing only the rails that might have frequent updates. Also, the entire home view should be refreshed periodically so it doesn't get stale.
See discussion in #293
We still need to figure out a way to refresh all content daily.
Personally, couldn't get this to work for today :(.
This requires quite some native module code to hook into notifications re the app moving to the foreground and the VC appearing.
Not an easy one; something that could be revisited after we figure out updates for Inbox.