Skip to content

Performance Improvements

Latest
Compare
Choose a tag to compare
@chrisjpatty chrisjpatty released this 24 May 21:56
· 6 commits to master since this release

Since react-dragtastic was released it's been used in a variety of interesting ways that we never even imagined. This new release helps alleviate a performance pain point of a common scenario, rendering large numbers of draggables and droppables. Now every exported component has a new optional prop called subscribeTo, which accepts an array of strings. If this prop is present the component's render prop function will only be called if at least one of the keys that was passed has changed.