[LiveComponent] Re-initialize upon visibility
gerritwitkamp opened this issue · comments
Hi,
Right now we're using a lazy Live Component in a modal, which gets initialized when the modal becomes visible; that's working great. I was wondering if it's possible to 're-initialize' a Live Component when become visible again, so not only the first time.
I only managed by adding a custom Stimulus controller that communicates with the Live Component by calling a 'init'-method.
Thanks in advance.
I don't think we want it in the core but this is a great think you can still share your code here! 😁