Livewire encountered corrupt data when trying to hydrate the [app.filament.resources.conference-reso

Im having this error, but in only appears on a few items, i already tried everything i can remember but i cant figure it why it works in most of the cases and others doesnt work. any one has any ideia?
Solution:
Try casting it to a string. PHP doesn't handle large numbers like that
Jump to solution
4 Replies
tiago.pereira
tiago.pereira3w ago
i found now that one value gets loaded with last digit changed to 0, on DB i have 20240659413898322 it load as 20240659413898320, but is changed in db to 20240659413898324 it works fine, if i change to 20240659413898323 it shows as 20240659413898324 its very strange the value is saved as BIGINT unsigned
Solution
toeknee
toeknee3w ago
Try casting it to a string. PHP doesn't handle large numbers like that
toeknee
toeknee3w ago
20240659413898322 is being approximated as 20240659413898320 due to floating-point precision loss
tiago.pereira
tiago.pereira3w ago
yes that was the solution, i was also searching on livewire forum and git i found there the issue also and the only solution was that Thanks
Want results from more Discord servers?
Add your server