DEV Community

Discussion on: Quasar and Apollo - Client State without Vuex - Part 2

Collapse
 
wyepez profile image
Washington Yepez

"Here is a challenge. Can you imagine a different way of doing this? If yes, explain what your method would be in the comments below!" --> This is exactly the kind of troubles that I'm facing. I have a MenuBar component with a refresh button and another component with a table bound to a smart query. With vuex, I bound the table with the data from a getter in the store and from the menu bar, when the user click on the refresh button, an action is called on the store to update the data that is bound in the table. But with apollo using its cache, I found it very difficult to update a smart query from another component. I had to propagate events up and write props down to get this which it's not nice if I used to use vuex to not do it.