Page 1 of 1

BryntumGrid - extend React.PureComponent?

Posted: Sun Nov 25, 2018 11:15 pm
by Les
I'm looking at the BryntumGrid class definition.

https://www.bryntum.com/examples/grid/r ... s/grid.jsx

Would the BryntumGrid component be more efficient if the React.PureComponent were extended instead of React.Component?

Here's a usage example:

https://www.bryntum.com/examples/grid/react/app.jsx

Re: BryntumGrid - extend React.PureComponent?

Posted: Mon Nov 26, 2018 9:06 am
by johan.isaksson
Hi,

I am not sure it would have any big impact, but it is worth investigating either that or implementing `shouldComponentUpdate()` to prevent any unnecessary re-renders. Will keep it in mind when doing the next update of the react component.

In the meanwhile, feel free to try it out yourself and please report your findings if you do