Courses

Advanced Laravel Livewire

Delay Some Component Loading with wire:init

Previous: Query String Property in URLs
avatar

I tried wire:init like in this demo. However I have 2 inits with different endpoints with loading text.

The problem I'm seeing is that both inits need to be collected before showing the data. For example:

I have 1 init checking the database and I have another init that pulls from an API. The db init will not display until the API init is completed.

avatar

I don't think I have a solution for this, never tried multiple wire:init, not even sure Livewire supports/recommends it.

avatar
You can use Markdown
avatar
You can use Markdown