Closed
Description
We use a base class to extend our Components, so we do not have to optimize each Component on its own:
import React from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
// Optimized base class:
export default class Component extends React.Component {
shouldComponentUpdate(...args) {
return Reflect.apply(shouldPureComponentUpdate, this, args);
}
}
However, require-optimization
is complaining that the Components extending this base class were not optimized.
Metadata
Metadata
Assignees
Labels
No labels