dillon1000/react
Commit
Browse files 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
Changed paths2 files
First-parent comparisonsrc/isomorphic/modern/class/ReactBaseClasses.js ModifiedM src/renderers/shared/fiber/ReactChildFiber.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…