vuex-flash
vuex-flash copied to clipboard
Danger alert does not appear unless I refresh the page
The plugin works when I do router push to another location, however, it does not work if I want alert to show right away. For example, I am using danger alert to warn users when there is an error during logins, such as incorrect password, or incorrect user. In these situations, the route does not change (no this.$router.push). How do I flash an alert right away when the route does not change?
Is there an appropriate way to handle this? I'm guessing it has to do with how Vuex updates state?