lorisleiva / laravel-actions

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

Inertia requests are broken #267

Closed jameswagoner closed 4 months ago

jameswagoner commented 6 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 6 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 6 months ago

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

jameswagoner commented 6 months ago

Thanks!

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