Hi, i am adding EmbedEvent listners to

Hi, i am adding EmbedEvent listners to SearchEmebed when creating the component and i want to destroy them while navigating away, (but keep the component rendered and just hide it from view).

to remove the listener i am running
off.(...)
but this is not working. any idea why it is not working
Was this page helpful?