Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Show flash messages only once #30

Open
code28 opened this issue Jul 15, 2018 · 0 comments · May be fixed by #34
Open

Show flash messages only once #30

code28 opened this issue Jul 15, 2018 · 0 comments · May be fixed by #34

Comments

@code28
Copy link

code28 commented Jul 15, 2018

My impression of flash messages would be to show them only once. In this implementation, I see them only get added but not removed. Am I doing something wrong or am I missing something?

Otherwise, my suggestion would be to remove them when being rendered, so to insert the following line into FlashTag.swift at the end of the function render:

flash.flashes.removeAll()
@code28 code28 linked a pull request Oct 23, 2018 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant