VUECONF US 2019 | Global vs. Component State in Vuex with Jaimes Jones

Опубликовано: 31 Май 2019
на канале: Vue Mastery
1,811
49

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-...

Explore Vue.js courses 👉🏼 https://www.vuemastery.com/courses

Get in touch 👉🏼 [email protected]

Tweet us 👉🏼   / 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