You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the table data model of a TableKit instance is set to a new one where a row changed its item, the visible UI representation of the row should update accordingly.
Current Behavior
In some particular cases the row's UI won't be updated and would show an old value.
Steps to Reproduce
Have a table with a few rows
Set the table view height to match the content height
Create a new table with an updated item for the last row and inserted new row before the last one
Set the new table on the kit instance with "from top" insert animation
Result:
The table view would animate the change so that the last row stays visible, however it will show the old data.
Context
This is happening because we reconfigure and refresh only the rows for the visible index paths. However that's done right after applying changes to the table view with an animation which is synchronous but the effects on the visible index paths are delayed. So if we have 2 rows initially, insert one in the middle and update the last row, then right after the animate call the visible index paths will be 0 and 1 but after the animation completes the visible index paths will be 1 and 2 with the row on index 2 showing stale data.
Operating Version: -
Swift version: -
Failure Logs
The text was updated successfully, but these errors were encountered:
Expected Behavior
When the
table
data model of aTableKit
instance is set to a new one where a row changed its item, the visible UI representation of the row should update accordingly.Current Behavior
In some particular cases the row's UI won't be updated and would show an old value.
Steps to Reproduce
Result:
The table view would animate the change so that the last row stays visible, however it will show the old data.
Context
This is happening because we reconfigure and refresh only the rows for the visible index paths. However that's done right after applying changes to the table view with an animation which is synchronous but the effects on the visible index paths are delayed. So if we have 2 rows initially, insert one in the middle and update the last row, then right after the
animate
call the visible index paths will be 0 and 1 but after the animation completes the visible index paths will be 1 and 2 with the row on index 2 showing stale data.Failure Logs
The text was updated successfully, but these errors were encountered: