-
-
Save sophiebits/342ebd8df0d08143381dd38c01d13d15 to your computer and use it in GitHub Desktop.
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
diff --git a/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js b/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js | |
index 2f5c7a3..77b6164 100644 | |
--- a/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js | |
+++ b/src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js | |
@@ -24,7 +24,7 @@ describe('ReactComponentWithPureRenderMixin', () => { | |
ReactTestUtils = require('ReactTestUtils'); | |
}); | |
- it('provides a default shouldComponentUpdate implementation', () => { | |
+ fit('provides a default shouldComponentUpdate implementation', () => { | |
var renderCalls = 0; | |
class PlasticWrap extends React.Component { | |
constructor(props, context) { | |
diff --git a/src/renderers/shared/fiber/ReactFiberContext.js b/src/renderers/shared/fiber/ReactFiberContext.js | |
index 2479939..193a234 100644 | |
--- a/src/renderers/shared/fiber/ReactFiberContext.js | |
+++ b/src/renderers/shared/fiber/ReactFiberContext.js | |
@@ -77,6 +77,9 @@ function isContextProvider(fiber : Fiber) : boolean { | |
exports.isContextProvider = isContextProvider; | |
function popContextProvider() : void { | |
+console.log('popping', index); | |
+console.log(new Error().stack); | |
+if (index === -1) { throw new Error('popping -1'); } | |
contextStack[index] = emptyObject; | |
didPerformWorkStack[index] = false; | |
index--; | |
@@ -87,6 +90,8 @@ exports.pushTopLevelContextObject = function(context : Object, didChange : boole | |
invariant(index === -1, 'Unexpected context found on stack'); | |
index++; | |
contextStack[index] = context; | |
+console.log('pushing top-level', index); | |
+console.log(new Error().stack); | |
didPerformWorkStack[index] = didChange; | |
}; | |
@@ -126,6 +131,8 @@ exports.pushContextProvider = function(fiber : Fiber, didPerformWork : boolean) | |
index++; | |
contextStack[index] = mergedContext; | |
+console.log('pushing', index); | |
+console.log(new Error().stack); | |
didPerformWorkStack[index] = didPerformWork; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment