I am trying to understand how multiple component instances define themselves and differ from its “others”… I’ll present a simple example:
Say I have a Blog component and nested (child) Comment components. Comment subscribes to app actions like “saveNewComment” and because there are multiple instances of this component, action would be handled by each and every instance and comment thus saved multiple times.
(this example is of course theoretical, in reality action handler would be in Blog!)
Q: Since component’s key property is no longer accessible, how can I identify the component instance eg. for debugging in console? I might for example want to follow when an instance is unmounted and keep track of that by it’s unique key/id?