DEV Community

Discussion on: How to create a global snackbar using Nuxt, Vuetify and Vuex.

Collapse
 
juliageek profile image
juli4g33k

This was the first more complex task I had to implement for one of my previous employers and which I failed miserably, precisely because I went for the naive approach to create a component and import it in every other component where I needed to spawn a snackbar. I ended polluting the entire codebase with snippets of code for the snackbar.

Thanks for sharing your approach, it's easier and more elegant.