Use Portals to test batching across roots (#8508)

This doesn't work by default in Fiber, you have to opt-in with a Portal to
get the explicit ordering guarantees.
This commit is contained in:
Sebastian Markbåge
2016-12-06 13:46:36 -08:00
committed by GitHub
parent 48c7bbd980
commit facce3d736
3 changed files with 15 additions and 3 deletions
-1
View File
@@ -110,7 +110,6 @@ src/renderers/shared/shared/__tests__/ReactStatelessComponent-test.js
* should warn when using non-React functions in JSX
src/renderers/shared/shared/__tests__/ReactUpdates-test.js
* should queue mount-ready handlers across different roots
* marks top-level updates
* throws in setState if the update callback is not a function
* throws in replaceState if the update callback is not a function
+1
View File
@@ -1451,6 +1451,7 @@ src/renderers/shared/shared/__tests__/ReactUpdates-test.js
* should not reconcile children passed via props
* should flow updates correctly
* should share reconcile transaction across different roots
* should queue mount-ready handlers across different roots
* should flush updates in the correct order
* should flush updates in the correct order across roots
* should queue nested updates