Neden VUEX?

Vuex ‘in en güzel yanlarından bir tanesi ise uygulamamızdaki tüm component’lar data’ya istediği anda ulaşabiliyor ve istediği zaman data üzerinde değişiklik yapabiliyor olmasıdır. Değişiklikleri yapmak istediğimiz component’ta bir ‘action’ veya ‘mutation’ dispatch ederek olayın gerçekleşmesini sağlayabiliriz.

Read more

What is a Vuex action?

In Vuex, actions are functions that call mutations . Actions exist because mutations must be synchronous, whereas actions can be asynchronous. You can define actions by passing a POJO as the actions property to the Vuex store constructor as shown below. To “call” an action, you should use the Store#dispatch() function.

Read more