Skip to content

Commit fda7609

Browse files
committed
Add vuex principle questions and answers
1 parent db3b8e5 commit fda7609

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ List of 300 VueJS Interview Questions
184184
|175| [What is namespacing in vuex](#what-is-namespacing-in-vuex)|
185185
|176| [What is the default namespace behavior in vuex?](#what-is-the-default-namespace-behavior-in-vuex)|
186186
|177| [When do you reuse modules?](#when-do-you-reuse-modules)|
187+
|178| [What are the principles enforced by vuex?](#what-are-the-principles-enforced-by-vuex)|
187188

188189
1. ### What is VueJS?
189190
**Vue.js** is an open-source, progressive Javascript framework for building user interfaces that aim to be incrementally adoptable. The core library of VueJS is focused on the `view layer` only, and is easy to pick up and integrate with other libraries or existing projects.
@@ -3198,4 +3199,11 @@ List of 300 VueJS Interview Questions
31983199
// mutations, actions, getters...
31993200
}
32003201
```
3202+
178. ### What are the principles enforced by vuex?
3203+
Vuex enforces below high-level principles,
3204+
1. The Application-level state need to be centralized in the store
3205+
2. The state should be mutated by committing mutations only(i.e, for synchronous transactions)
3206+
3. The actions should be used for asynchronous transactions
3207+
179. ### ?
3208+
180. ### ?
32013209

0 commit comments

Comments
 (0)