scu-inspector
Please, write issue or PR, if have any feedback.
It does not display after filtered by false in SCU. So you can just check what props were not apply by filtered.
Synopsis
I used to display by using console.log to check prop changes in Console tab. But it was hard to recognize what was changed or not. So, I implemented module to check as table view in Console tab to avoid annoying.
Purpose is displaying props changes of shouldComponentUpdate(React). It is designed to use by single component by using decorator. If you want to apply every React components by using just once, use 'why-did-you-update'.
Installation
npm install --save scu-inspector
Screenshot
Usage
Babel
"plugins": [
"transform-decorators-legacy"
]
Javascript (React)
import scuInspector from 'scu-inspector'
@scuInspector({
mode: 'changed',
uniqueKey: 'position',
isCollapsed: true,
debug: false,
include: ['name', 'homepage'],
exclude: ['age', 'address', 'location']
})
shouldComponentUpdate (nextProps) {
...
}
@scuInspector()
shouldComponentUpdate (nextProps) {
...
}
License
MIT