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
It needs two requests since the retrieval of flash is being done before actually executing the controller method.
Due to this, I can't show alerts/notifications as response to ajax-style actions.
I think this should be a great addition to Inertia and a major requirement in any modern UX. I can imagine there can be many workarounds, but I achieved what I tried to do by creating a post-controller global middleware.
I wanted to ask you if you see there are some hidden risks in such approach or that I'm missing something basic that would meet the requirement I mentioned. I'm new to Inertia!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Great work guys! Inertia is amazing. I'm working with Laravel and React, and I have one doubt/proposal to know your opinion.
Right now, if I try to reload partially a resource:
Even though, such as suggested by the documentation, in HandleInertiaRequests I add:
It needs two requests since the retrieval of flash is being done before actually executing the controller method.
Due to this, I can't show alerts/notifications as response to ajax-style actions.
I think this should be a great addition to Inertia and a major requirement in any modern UX. I can imagine there can be many workarounds, but I achieved what I tried to do by creating a post-controller global middleware.
I wanted to ask you if you see there are some hidden risks in such approach or that I'm missing something basic that would meet the requirement I mentioned. I'm new to Inertia!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions