Code cleanup (#3131)
This commit is contained in:
parent
28bd31a125
commit
58affc53dc
5 changed files with 5 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ Module._load = function _load(path) {
|
|||
case 'hyper/component':
|
||||
//eslint-disable-next-line no-console
|
||||
console.warn(
|
||||
'DEPRECATED: If your plugin requires `hyper/component`, it must requires `react.PureComponent` instead and bundle `react` as a dependcy'
|
||||
'DEPRECATED: If your plugin requires `hyper/component`, it must requires `react.PureComponent` instead and bundle `react` as a dependency'
|
||||
);
|
||||
return PureComponent;
|
||||
case 'hyper/notify':
|
||||
|
|
@ -508,7 +508,7 @@ export function decorate(Component_, name) {
|
|||
}
|
||||
componentDidCatch() {
|
||||
this.setState({hasError: true});
|
||||
// No need to detail this error because React print those informations.
|
||||
// No need to detail this error because React print these information.
|
||||
notify(
|
||||
'Plugin error',
|
||||
`Plugins decorating ${name} has been disabled because of a plugin crash. Check Developer Tools for details.`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue