What seems to be the problem:
I have a model with 19 digit unsigned big integer ID. I passes it to component as follows:
@livewire('schedule-editor-modal', $rows->first())
In component:
public function mount($row)
{
$this->workplanRow = $row;
}
It mounted successfully, but after render()
is called I’ve got an exception CorruptComponentPayloadException
. I added Log::debug()
to the SecureHydrationWithChecksum
middleware and found out the following:
dehydrate
array (
'class' => 'App\\Models\\EduProcess\\WorkplanRow',
'id' => 1627802566207636954,
'relations' =>
array (
),
'connection' => 'mysql',
)
hydrate
array (
'class' => 'App\\Models\\EduProcess\\WorkplanRow',
'id' => 1627802566207637000,
'relations' =>
array (
),
'connection' => 'mysql',
)
So, as you can see, it rounded ID to the sixteenth digit. I believe that it is not related to Livewire itself, but I need help in solving this problem within Livewire.
Are you using the latest version of Livewire: Yes