News feed state model
In a gaming news feed, refresh, pagination, and bookmarking all happen at the same time. What single state and event flow would you define so the screen doesn't overwrite one response with another?
In a gaming news feed, refresh, pagination, and bookmarking all happen at the same time. What single state and event flow would you define so the screen doesn't overwrite one response with another?
Gather items, nextCursor, the kind of work in progress, error, and the set of bookmarked ids into one FeedState value, and let a single reducer function handle every change through events like .refreshFinished, .pageAppended, and .bookmarkToggled, so the three flows can't overwrite each other's fields.
iOS system designShort answerAdvanced
Design an infinite-scroll feed screen like Twitter's from the iOS client's point of view…
#feed
iOS system designShort answerAdvanced
An iOS app implements infinite scroll for a photo feed seen by hundreds of millions of…
#feed
iOS system designShort answerAdvanced
A real-time social news feed receives incremental WebSocket events and an initial REST…
#feed
ArchitectureShort answerAdvanced
Your team is evaluating TCA (The Composable Architecture). What problems does TCA solve?
#reducer