Replies: 1 comment
-
|
I put this in the share method of the HandleInertiaRequests middleware. The first part is so I don't have to change all the controller to use new system. The second part is to make sure the flash event always fire. It is working ok but the second part does not feel right. I am not a professional programmer so I probably do somthing that is not quite right. Does anybody have a better way of doing this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quoting the doc, "During partial reloads it only fires if the flash data has changed." I think this is problematic. When I update the same model twice hitting the same controller that flash the same message, the flash would only fire once. This make the behavoir inconsistent when user updating thing twice. Right now I have to flash a time stamp just to make the flash different each time. Is there any better way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions