To avoid re-rendering in Vue 3, you give the component a key attribute.
Example from official documentation:
<transition> <span :key="text">{{ text }}</span> </transition>
https://vuejs.org/api/built-in-special-attributes