mapActions() returns an object. Only after using the ... extension character can it be put into an object and be in the same methods object as the methods defined in other components.
Then...mapActions() just takes out a and b and puts them together with other methods. ... represents two meanings, one is the remainder operator and the other is the expansion operator. The one used in your question should mean the remainder operation, and...mapActions is the expansion operator. Details: https://developer.mozilla.org...
mapActions() returns an object. Only after using the ... extension character can it be put into an object and be in the same methods object as the methods defined in other components.
Correct solution upstairs, assuming mapActions() returns
Then...mapActions() just takes out a and b and puts them together with other methods.
... represents two meanings, one is the remainder operator and the other is the expansion operator. The one used in your question should mean the remainder operation, and...mapActions is the expansion operator.
Details: https://developer.mozilla.org...