dummy subject

Hello everyone,

I wonder if ‘it’ in the following sentence is a dummy subject?

I love it when you hug me.

‘it’ is a pronoun but doesn’t doesn’t have a precede noun. I don’t know what ‘it’ means.

Thank you very much.

‘It’ foreshadows the ‘hugging’.

What do you call ‘it’ grammatically?
Is it object or what?

Anticipatory pronoun object.

Dear Alan,

Can I say grammatically

    I love when you hug me (without "it")?

That doesn’t make sense. You could say: I love you® hugging me.