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 authored and Andrew Clark committed 2016-12-07 23:09:08 -08:00
1 parent 9510ecfc5e
commit 5fcdebf712
7 files changed
+165 -85

No files matched your search

+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