1 min readFeb 14, 2018
It happens seldom, but I use $root
instance to store some minor data that I need to use throughout the application (and that need to be reactive, ofc).
These data are usually not suitable to store in Vuex (you will have to create common module with name like common
, misc
etc, it’s not OK)
Store some data in $root
is like new Context API in React, but with Root instead of Provider