Watching Repository Changes #722
-
Hi! What's the proper practice for watching repository CRUD changes on components? I've tried setting a watch on a computed "mapRepos" member and it seems no trigger is occuring (verified the data does change in the store). What I current have is:
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Can you please provide a reproduction? 🙏 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, I will post one later as soon as I can. In the meanwhile, can you please refer me to how to properly watch a repository change in a vue component? I probably missed it in the docs :( |
Beta Was this translation helpful? Give feedback.
-
Solved. I've used
instead of mapRepos. |
Beta Was this translation helpful? Give feedback.
Solved.
I've used
computed: { XZY() { return store.state.value.XYZ }
instead of mapRepos.