hi, iam using vuex in my project and iam calling getter in one of my component but it is a sort of function that return a function but what i want is its return value. please help.
i want mappedProducts
You are likely going to have to give some more context here. Where is the function defined and where and how is it used? Do you have a repo with the code?
But just in general, for functions that return functions, you can use double parentheses to invoke the returned function immediately (which would return the return value of the inner function).
someMethod(someArg)()
FYI, I don’t really use Vue or Vuex so I might not be able to answer your question.