-
- Notifications
You must be signed in to change notification settings - Fork 383
Open
Labels
DocumentationImprovements or additions to documentationImprovements or additions to documentationLiveComponent
Description
The documentation states that a LiveProp may be an entity however there's no example of how to instantiate the component with the entity. And... There are tricks here!
In my case I had a mount()
function:
#[LiveProp] public Post $post; public function mount(Post $post) { // .. doing something }
It's actually required here to hydrate manually the prop:
#[LiveProp] public Post $post; public function mount(Post $post) { $this->post = $post; // .. doing something }
More like a doc issue than an actual problem.
Metadata
Metadata
Assignees
Labels
DocumentationImprovements or additions to documentationImprovements or additions to documentationLiveComponent