-
-
Notifications
You must be signed in to change notification settings - Fork 390
Open
Labels
Description
Hi all!
Example:
<?php
namespace App\Twig\Components;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\Attribute\LiveProp;
use Symfony\UX\LiveComponent\DefaultActionTrait;
#[AsLiveComponent]
final class Test
{
use DefaultActionTrait;
#[LiveProp(writable: true)]
public int $count = 0;
}<div{{ attributes }}>
<input type="text" data-model="count">
{{ count|number_format }}
</div>If you put a number larger than PHP_INT_MAX into the input field, then you get an
Invalid checksum sent when updating the live component. Exception.
Thats ok, but it could be more precise.
The problem is that if I delete, or change a smaller number below int_max, the error stays until I reload the page.
Is there a way to prevent this?