A
A
Alexander2022-03-31 18:08:56
AJAX
Alexander, 2022-03-31 18:08:56

How to start Livewire after page load?

Can you tell a beginner how to start a Livewire component after loading the page with a separate request?
Bottom line: User profile page, you need to display some "heavy" data using Livewire so that the user does not look at the download page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pychev Anatoly, 2022-04-07
@SmoKE_xD

There may be several options. It all depends on your context.
As an option, you can not display the content of your component by framing a mile inside your component in @if @endifTo do this, add a field public bool myParam = false. When the page loads, call the update of this field via js @this.set('myParam', true). And then display your content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question