I have two nested reactive components: Outerand Inner. Whenever I call setStatefrom Inner, the renderinner component is called. In addition, whenever I call setStatean external component, the functions of renderboth the external and internal components are called. I would like to highlight these two cases and determine what a piece of rendering of the internal component is. My function render Innershould behave differently depending on this. How can i do this?
source
share