Skip to content

The Update methods only work the first time #127

@erick661

Description

@erick661

Volt Version

1.6.6

Laravel Version

11.36.1

PHP Version

8.3.13

Database Driver & Version

No response

Description

The updated or updating method only trigger the first time. The reactive property is bieng updated correctly
#[Reactive] public int $projectId;

`public function updatedProjectId(): void
{
dd($this->projectId);
$this->LoadData();
// this function dont fire anytime
}

public function updated(): void
{
    $this->LoadData();
   //This fucntion only fire the firstime. Only work again when the page is reloaded
}`. 

On the parent

<livewire:charts.projects.chart :projectId="$projectId" />

Steps To Reproduce

create a parent child component. the make a property reactive in the child and have some values updated base in theproperty. I have a charsjs coponent in the child.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions