-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One problem with the original implementation is it didn't handle items entering/leaving the DOM very gracefully. Items on enter would animate, often from the wrong position. Items on leave could throw errors. I refactored the on-update logic to skip animation on a specific child if that child: * Was stationary (untracked) * Was brand new (no history) * Was just destroyed. I also made some small improvements, such as batching all .setState requests instead of making several individual ones.
- Loading branch information
1 parent
2ce2745
commit 076c6eb
Showing
2 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters