Move commit phase outside of performUnitOfWork

This gives us the ability to complete a tree without having to commit it
within the same frame.
This commit is contained in:
Andrew Clark
2016-12-07 23:09:08 -08:00
committed by Andrew Clark
parent 9510ecfc5e
commit 5fcdebf712
7 changed files with 165 additions and 85 deletions
+1
View File
@@ -1161,6 +1161,7 @@ src/renderers/shared/fiber/__tests__/ReactIncrementalSideEffects-test.js
* preserves a previously rendered node when deprioritized
* can reuse side-effects after being preempted
* can reuse side-effects after being preempted, if shouldComponentUpdate is false
* can update a completed tree before it has a chance to commit
* updates a child even though the old props is empty
* can defer side-effects and resume them later on
* can defer side-effects and reuse them later - complex