“RangeError: Maximum call stack size exceeded” and Vuex

Sabina Niewiadomska
1 min readMay 5, 2019

One of the reasons to see “RangeError: Maximum call stack size exceeded” error might be an incorrect implementation of a computed property, here is an example of mapping Vuex state both the way which causes the error and fixed one:

As you can see from the above code, in this case, correct implementation of mapState solved the issue.

More about state and Vuex you can find here in the documentation.

Edit Sep. 2020:

If you are not a robot*, please give me a clap or a comment that I can see human reads of this article. 👏

And if that article was helpful for you, then you should especially let me know! 👏👏👏

*I’m getting quite a lot of reads on this article which I’m doubting are from humans.

--

--