So very simple, and nothing that I couldn’t do without Vue but it takes care of the boring DOM manipulations and using the browser extension during development I can watch state change (which becomes interesting when there are multiple subscriptions with data combined).
Vuex code as per docs to create state.stuff and mutations.update_suff() then in main Vue instance
where $socket is a subscriber client I wrote wrapped as a Vue plugin.Then inside the components
then use stuff as in your example.So very simple, and nothing that I couldn’t do without Vue but it takes care of the boring DOM manipulations and using the browser extension during development I can watch state change (which becomes interesting when there are multiple subscriptions with data combined).