Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

uniqueginun's avatar

Vue2 Error: do not mutate vuex store state outside mutation handlers

Hello there.

I am using Vue&Vuex in my laravel app and I have the current scenario:

  • parent component that read items from vuex store getters and pass them to child component as props. in my child component I'm doing the following:
<template>
	<form>
		 <select v-for="(item, index) of itemList" :key="index" v-model="item.selectedOption">
              <option v-for="i of item.options" :key="`key-${i.id}`" :value="i.id">
					{{ i.text }}
			</option>
		</select>
	</form>
</template>

<script>
	export default {
        props: ['items'],

        data() => ({
            itemList: []
        }),

       mounted() { 
           this.itemList = this.items
       }
    }							
</script>
  • but whenever I change select option I get this error: do not mutate vuex store state outside mutation handlers eventhough I am not changing the items "which they come from vuex" I am actually changing own child component data property
0 likes
1 reply
Rockstar12's avatar

About Fingerless Gloves

Gloves are hand-covering garments. The fingers and thumbs of gloves usually have separate sheaths or openings. Gloves with an opening and no (or a short) covering for each finger are called fingerless gloves. In some cases, fingerless gloves that have one small opening rather than a hole for each finger are called gauntlets, though gauntlets may not be fingerless.

Mittens are gloves that cover your entire hand or fist but do not include separate finger openings. Mittens gloves are warmer than other styles of gloves made of the same material since fingers maintain their heat better when in contact with each other; the reduced surface area also reduces heat loss.

Knitted Wool Gloves for Warmth

Wool or knit fingerless gloves are the most colorful with a wide range of patterns and designs. These gloves provide good warmth and are extremely comfortable to wear. Wool can be made from various types, and knitting or crocheting can create many unique and creative designs. Let’s examine the different types of wool that can be used for wool fingerless gloves.

How Many Kinds of Wool Used For Gloves

Cashmere is a popular type of wool, although it is usually referred to as just cashmere. Cashmere is known for its soft fibers. They provide excellent warmth and insulation without being bulky like other wools. The cashmere fingerless gloves are lightweight, soft, and warm.

The outer fur coat of the Angora rabbit is made of Angora wool. It is known for its softness and silky texture. It is commonly used for knitting sweaters. Angora wool is popular with crafters who want to make fingerless wool gloves.

Due to its fine fibers, Merino is also one of the softest wools. Wool is very popular in athletic clothing because it wicks moisture away from the body, keeping the wearer cool even during strenuous activity.

Different Types of Gloves

Best Touch Screen Gloves for Mens and Womens:-

Wind-resistant and made for maximum functionality and agility, touch screen gloves are wind-proof and touchscreen-capable. They are knitted using a lightweight, thin, and stretchy fabric that protects your hands from extreme temperatures. During the winter, you can text all you want and use your smartphone even during a heavy downpour because the gloves protect the screen. Mens touch screen gloves are lined with silicone grips in order to keep your phone from falling out of your hands. The gloves allow you to use the knuckles, fingertip, and palm of your hand to operate your touch phone.

Please or to participate in this conversation.