When web components are used in a tab, on switching a tab material removes them from DOM instead of hiding them.
When web components are removed from DOM, they get destroyed and lose their state.
Consequently, switching back to same tab makes them re render again from scratch.