What are the principles enforced by vuex?

Posted by Jennifer | Updated on

Vuex enforces below high-level principles:

  1. The Application-level state need to be centralized in the store
  2. The state should be mutated by committing mutations only(i.e, for synchronous transactions)
  3. The actions should be used for asynchronous transactions.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers