newforms icon indicating copy to clipboard operation
newforms copied to clipboard

Performance of onChange & event validation

Open insin opened this issue 11 years ago • 0 comments

There is a performance cost to forcing a re-render of the form's containing component when something changes.

Figure out and document some guidelines for writing your own BoundField-rendering React component to implement shouldComponentUpdate().

Other things which will help in the short term:

  • Providing a way to get all a field's mutable state from a BoundField
  • Use React.addons.update() for state changes

Longer term:

  • Use an immutable library for state objects.
  • Switch to rendering React components for field rows & widgets

insin avatar Mar 14 '14 15:03 insin