dillon1000/react

Commit

moved require(emptyObject) to inline calls to get around referential mismatch

Due to how Jest and other mocking libraries work in userland, modules that are required might not be referentially equal at various stages of the application lifecycle. This isnt a perfect fix, but by having the require calls inline, it has a better liklihood of ensuring emptyObject is the same reference
Browse files
Changed paths2 files
First-parent comparison
M src/isomorphic/modern/class/ReactBaseClasses.js ModifiedM src/renderers/shared/fiber/ReactChildFiber.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…