Go to content

Global vs. Component State in Vuex with Jaimes Jones

Jaimes goes over specific instances and how you decide which data belongs in a global state and which data belongs in a component state. Watch more Vue conference talks ๐Ÿ‘‰๐Ÿผ https://www.vuemastery.com/conferences Get your free Vue essentials cheat sheet ๐Ÿ‘‰๐Ÿผ https://www.vuemastery.com/vue-cheat-sheet Explore Vue.js courses ๐Ÿ‘‰๐Ÿผ https://www.vuemastery.com/courses Get in touch ๐Ÿ‘‰๐Ÿผ team@vuemastery.com Tweet us ๐Ÿ‘‰๐Ÿผ https://twitter.com/VueMastery 0:00 Introduction 0:35 Two States: Local & Global 1:18 Will this piece of data be the same across the entire app? 2:08 Will this piece of data be used across more than one component? 2:31 Is this piece of data generated based on other data in the application? 2:50 Will this piece of data be used in a component that renders multiple times? 3:26 Will the date be changed from multiple places? 4:00 Belongs in Global State 4:23 Belongs in Component State

March 25, 2019