Skip to content

Commit

Permalink
Merge pull request #207 from Shopify/jk_do_not_animate_on_first_pass
Browse files Browse the repository at this point in the history
Fix boolean logic to not animate on first load of data
  • Loading branch information
jasonkemp9099 authored Mar 31, 2021
2 parents 561cac3 + 2b98994 commit 2c83e4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extension FunctionalTableData {
if let snapshot = datasource?.snapshot(), snapshot.numberOfSections == 0 {
isFirstRender = false
}
let shouldAnimate = animated && isFirstRender
let shouldAnimate = animated && !isFirstRender
NSException.catchAndHandle {
self.datasource.apply(snapshot, animatingDifferences: shouldAnimate, completion: completion)
} failure: { (exception) in
Expand Down

0 comments on commit 2c83e4b

Please sign in to comment.