Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Drop in replacement for `React.PureComponent` or can replace `React.PureComponent` for all components. Logs out what exactly triggered a re-render of a `PureComponent` to make it easier to track down why a component is re-rendering. With some other changes we'll also get component stacks in the YellowBox to make it even easier. I thought about logging the values, but it's too easy to render something gross or cyclical like react components, so I figured people could break in the debugger to get more detail as needed. Special flow type should cause errors if people try to commit any usage of this - it should only be used for local debugging. Reviewed By: yungsters Differential Revision: D7826325 fbshipit-source-id: fdf7910336452ac1c7acd328c04d441dfb186b59
- Loading branch information