LiveView Hooks. What am I doing wrong?

Following along with this example from the docs:

I’ve added this little test hook.

I’ve added the dom element

But I get nothing yet I can see the Hook in the LiveSocket and even call it directly.

What am I missing here?

1 Like

Looks like a typo
“mount” > “mounted”

Thanks to @ Elijah Kim for pointing this out.


Yes, the correct way to call is “mounted( )” :blush: