lorisleiva / laravel-actions

⚡️ Laravel components that take care of one specific task
https://laravelactions.com
MIT License
2.52k stars 124 forks source link

Inertia requests are broken #267

Closed jameswagoner closed 8 months ago

jameswagoner commented 10 months ago

266 introduced a bug in which Inertia requests are incorrectly identified as pure json requests

The addition of || isJson() is too granular of a condition when it comes to Inertia requests.

jameswagoner commented 10 months ago

I can get a PR later today and include a test case for Inertia requests.

For now the solution for others is to rollback to v2.7.1

lorisleiva commented 10 months ago

Thank you for raising this, I reverted the previous PR and published a new patch release.

jameswagoner commented 10 months ago

Thanks!

I'll still try for a test case for Inertia requests if no one else gets to one before I do.