'Is there a way to detemine if the re-render is because of props or state change?
I want to stop the re-render on certain props changes, but if any state is changed i want it to re-render, I know one way is to check for all the states and props, but there's quite some complex data in the states, and i don't want to go through the computation of comparing them, cause i want to re-render on any state change, and only compare and stop the render when props are changed
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
