Initialising Alpine components when using Livewire navigate #3880
-
I have a component that uses a component object defined with If I initialise that object inside an However, if I navigate to the page using Livewire's navigate feature it is not initialised, as So I thought the solution would be to listen to the However, while Is there another way to do this that works on both direct page loads and Livewire navigate loads? I would use Livewire's new |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Just put it in both. Make one function that does it, and put it in both listeners. |
Beta Was this translation helpful? Give feedback.
Just put it in both.
Make one function that does it, and put it in both listeners.