Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Update methods only work the first time #127

Open
erick661 opened this issue Dec 23, 2024 · 0 comments
Open

The Update methods only work the first time #127

erick661 opened this issue Dec 23, 2024 · 0 comments

Comments

@erick661
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant