Skip to content
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

🐛 Preventing flash messages from reappearing #35

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

JuzerShakir
Copy link
Owner

This PR fixes the bug which I have explained in detail here. The flash message appeared multiple times.

Adding the data-turbo-temporary attribute to the flash block removes it from the document before being cached. Hence, preventing it from reappearing multiple times.

@JuzerShakir JuzerShakir marked this pull request as ready for review January 30, 2024 05:44
@JuzerShakir JuzerShakir merged commit 1e47a9e into master Jan 30, 2024
1 check passed
@JuzerShakir JuzerShakir deleted the fix-flash-bug branch January 30, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant