How to use cache components by key?
You can reproduce an issue here Click on text and you get "did mount rx" over and over again, how to fix it?
As you can see, the same happens when you're just mapping over the array without rxjs. It is an expected behaviour - when the key prop changes, the component gets unmounted.
As you can see, the same happens when you're just mapping over the array without rxjs. It is an expected behaviour - when the key prop changes, the component gets unmounted.
But in the example it is not that.

Not when I run it:

Not when I run it:
After run, click on text, be attention, please.