Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Avoid unnecessary rerendering of Rough Components

Latest
Compare
Choose a tag to compare
@ooade ooade released this 19 May 21:42
· 3 commits to master since this release

Prior to this version, you would have to wrap each Rough Components (Rectangle, Circle, ...) on your own with memo to prevent it from re-rendering when one of the components changes. We made sure to take care of that for you.

Also, we were using a function from useEffect to get the renderer type which was less performant. We also made sure to avoid that as well.