Is there a way to ‘globally’ set properties, such as dark
for all components?
Right now I have a user configurable global app state isDark
in Vuex, but i have to add :dark="state.isDark"
to every component that has that takes the dark
prop, and add the Vuex state or getter to every component.
It is getting to be quite a bit of overhead, and I was wondering if anyone had a better solution. Thanks in advance.