-
1
mutation vs actionTimes asked 1Official solution
SimpleMutations sync diary entry. Actions async kaam phir diary.
Direct state mutate action se Vuex 4 discouraged. Devtools time-travel mutations.
Purpose of Actions: API, phir commit. Purpose of Mutations: state change one place.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: action fetchVenues → commit setVenues. Mutation sirf array replace.
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
2
write a query to fetch the jobs created by the company googleTimes asked 1Official solution
Simplefilter manager_id / company name / approved. Same Query API. Write query fetch treks/jobs/drives.
Examiner project-specific names — same pattern.
Pehle 1-line definition, phir related MAD2 layer (Vue SFC / Flask route / models.py / tasks.py / Redis).
4-line formula: input kahan se aaya, auth/validation kaunsa, DB ya cache ya Celery, kya return.
Related mix mat karo — cache ≠ Celery, authentication ≠ authorization, v-if ≠ v-show, Beat ≠ Worker. Follow-up ke liye ek difference ready rakho.
Project example: Drive.query.filter_by(approved=True)
Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet
-
3
write template and script such that user takes 2 inputs say firstname and lastname. add a button. upon clicking, it should return firstname+lastname.Times asked 2Official solution
SimpleVue live: two inputs v-model, button @click se first+last concat karke dikhao.
Example
<input v-model="first" /><input v-model="last" /> <button @click="full = first + ' ' + last">Go</button> <p>{{ full }}</p>Community answers
No replies yet
No community answers yet
Open My solution to be the first to share yours.
My solution
Not submitted yet