'Is there a way using store inside a static method?

I need to dispatch an action inside a static function. Is there a way to do this and is it a good practice?



Sources

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

Source: Stack Overflow

Solution Source