newforms
newforms copied to clipboard
Performance of onChange & event validation
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