Subscribe on changes!

Maximum recursive updates exceeded

avatar
Feb 15th 2021

Version

3.0.5

Reproduction link

https://codesandbox.io/s/ecstatic-night-9u7vk?file=/src/App.vue

Steps to reproduce

Just open the CodeSandbox and refresh the browser.

What is expected?

I was expecting to get a text showing 123.

What is actually happening?

Giving me an error saying "Maximum recursive updates exceeded".

avatar
Feb 15th 2021

you change state while rendering (test++), triggering a re-render, and so on. Don't do that.

avatar
Feb 15th 2021

Thank you for the answer. What the best way to solve this then?

avatar
Feb 15th 2021

I don't know what you want to achieve so I don't have an answer to that.

If you need help, please use chat.vuejs.org andf ask the community.

avatar
Feb 15th 2021

Ok thank you for your time!