Phoenix component wrapped in an if block not updating

It is explained here: Feature Request: LiveView Dynamic Favicon