filament/forms
v3.2.97
v10.48.18
No response
PHP 8.2
When testing a component with a file upload component in it, the afterStateUpdated() method gets called twice. It does not, in the browser.
I ran into the issue when removing files on validation errors (scanning for virus). The second time it is then called, it replaces the file with null
(another bug I think?), which then breaks the file validation as null isn't allowed in the array.
Dont call the afterStateUpdated() twice
Use the file upload in a form with afterStateUpdated()
and have a test that fills it out.
Run vendor/bin/pest
and see that it outputs CALLED twice
https://github.com/sinnbeck/filament-upload-test-issue
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too