dillon1000/react

Commit

Ignore specifically React warning getter in ReactElement

We don’t want to have different behavior in development and production.
Previously, we used to ignore getters on key/ref in dev, but we’d read them in prod.
Now, we only ignore the getters that we *know* we created so the production logic doesn’t differ.
Browse files
Changed paths3 files
First-parent comparison
M src/isomorphic/classic/element/ReactElement.js ModifiedM src/isomorphic/classic/element/__tests__/ReactElement-test.js ModifiedM src/isomorphic/classic/element/__tests__/ReactElementClone-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…