Put in order · Vue.js course · Module 11: Pinia
$patch with a Function
Arrange the elements to use $patch with a function
Items to put in order
- state.items.push(newItem)
- })
- store.$patch(
- (state) => {
You can check the correct answer by solving this task in the CodeWorlds game.