What is the best way to update the data source.
- Dominant language
- Swift
- Stars
- 4.6k
- Forks
- 588
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm having the following user case:
The application last state before going to background is "chat mode" (other state: inbox, with channels listed), messages loaded into the data source, everything is great.
Now, when user gets a notification and then opens the app, as stated, the app is already in chat state. I need to update the chat with the newer, relevant data.
I tried to change the datasource with new information and then call
`chatDataSourceDidUpdate(aSelf.dataSource, updateType: UpdateType.normal)`
but the data is updating with weird animation.
What is the best way for updating the datasource without having that animation?
Contributor guide
Research direction
Start at chatDataSourceDidUpdate(aSelf.dataSource, updateType: UpdateType.normal) and trace how UpdateType.normal handles a changed data source. Reproduce the background-to-chat notification flow with newer messages, then determine what behavior counts as done: the chat data updates without the reported weird animation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100