Phoenix LiveView hooks not being registered

I have a hook specified on a select element in a live component, and it’s not being registered after the initial page load (mounted is not being called), but if I change something on a page such that the component with the hook gets re-rendered, it does register itself.

Has anyone encountered this behaviour?

Can you provide some example code?

I’ll try to debug it, and if I fail, I’ll try to reproduce it in a clean project. I was mostly wondering if anyone else had encountered something similar.