I think there are already many issues for this, I just want to say this feature is very very very important, I know that perhaps we can use a mutation to do the same work just with a return. But mutation is for change the state, if I use it like this, I will be doing something too strange that I don't want really want to do.
I hope really Vuex getters can have a payload.
Last question, I think there maybe also a design problem with the name getter. In fact, if a getter return directlly the state, then we can change the state use this getter. It's strange because it's just a getter not getter&&setter.
I hope really someone can fix the two problems, for a long time I think I can work with these problems exist.....it's not true now......
As @lloydjatkinson described.
We can only use other getters for now, but sometimes I need to pass a value to a component and the component use it鈥檚 state and this value to calculate. Finally it return the result
Did you read the example shown in the link?
Sorry, I didn't see that carefully. Thanks for the support which is important for me!
Most helpful comment
As @lloydjatkinson described.