A component will not even be invoked in the first place if the assigns you pass to it have not changed. So its assigns either changed or you are inside a comprehension.
However, I would say rendering a SVG like that is an anti-pattern. You should embed it like Phoenix deals with hero-icons or pick another strategy. Otherwise, even if you cache or make it work with change tracking, if you need to render it in 10 different places, it will still be sent in 10 different places (regardless if you are using LiveView or any other web framework).






















