'Is there any way to listen vuex store element without using it inside the template

I have seen a lot of examples. The most complicaded or simple always uses the value as a prop for a element in your component

{{theValue}}

When you use it so, things go well.

But I'd want to have a way to be notified of 'theValue' change without using it And also I dont want to use the trick or having a hidden element. Simply, I only want to get notified.

Any idea ? Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source