You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #467 [Live] Rendering any errors in a simple modal (weaverryan)
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
[Live] Rendering any errors in a simple modal
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| Tickets | #102 Bugs G
| License | MIT
Beautiful error handling! Inspired by Livewire:
<img width="1280" alt="Screen Shot 2022-09-19 at 4 10 35 PM" src="https://user-images.githubusercontent.com/121003/191117592-7a203e6c-0a18-4eb1-aa89-4e07698f5227.png">
You can even `dd()` from your code and that will render in the modal:
<img width="1275" alt="Screen Shot 2022-09-19 at 5 10 29 PM" src="https://user-images.githubusercontent.com/121003/191117596-5bcdb75d-42c1-4fae-8af5-2007127c2fac.png">
If an Ajax call returns anything OTHER than a rendered component (i.e. there was SOME sort of error), it's rendered in a modal. This is mostly for development errors. The modal will show on production also (and would show, for example, the 500 production page), but that should not happen in normal situations.
Cheers!
Commits
-------
24bd3a9 [Live] Rendering any errors in a simple modal
0 commit comments