-
Notifications
You must be signed in to change notification settings - Fork 845
Inertia Default Banner Component Does Not Show More Than Once #696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you maybe create a repo that reproduces the bug so I can debug this more easily? Please commit your custom changes separately from the base skeleton. |
Closing this issue because it's inactive, already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue and we'll re-open this issue. |
Thanks for the solution @bricehartmann I'm also dealing with that problem. To make things easier and prevent to re-render the component, I've added a timestamp value to HandleInertiaRequests::share() to make it available every component. I'm watching this value if I need:
|
The problem is still there and needs to be solved. Thank you @bricehartmann. |
@driesvints this is still an issue. Where is the backend logic to the banner flash so I can make a pull request? |
Description:
The default
Banner
component included with Jetstream will only show once if the same component is rendered after a form submission.Steps To Reproduce:
MyForm
on the front end that submits toPOST /my-form
and drop it into your applicationWorkaround:
Currently I am working around this by assigning a unique ID to each banner that is flashed with a watcher to reset the
show
flag in theBanner
component.In the
Banner
component, a new computed property:In the
Banner
component, a new watcher:On the back end, any time I flash a banner to the session:
The text was updated successfully, but these errors were encountered: