wire-elements / pro-demo

8 stars 0 forks source link

Components not destroyed #10

Closed psizer10 closed 2 months ago

psizer10 commented 3 months ago

I'm encountering an issue using the slide-over with echo listeners. We've put together a chat widget comprised of two slide-overs, one being an inbox of open chats and another actually to use the chat. The problem arises from the slide-over still existing once closed - the inbox slide-over opens the chat slide-over, and then when the chat is closed, it is just hidden. When reopening the chat the component is not reinitialised, meaning the listeners are inactive. Is there a workaround for this kind of situation?

psizer10 commented 3 months ago

I didn't phrase that quite right. It's not that the listeners are inactive. Upon close of the chat slide-over we manually disconnect from the chat, and then when it's reopened it doesn't reconnect due to the listeners not reinitialising.