Description
Vue version
Commit 2c0414f (Latest at time of writing)
Link to minimal reproduction
Steps to reproduce
Upon opening the minimal reproduction link, the playground should immediately show the following error:
Maximum recursive updates exceeded in component <Repl>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.
What is expected?
No error should occur.
What is actually happening?
It seems that triggering the ref's getter before the setter inside of config.errorHandler
causes an infinite loop to occur.
However, if the getter is placed after the setter, the no such infinite loop is entered.
System Info
No response
Any additional comments?
The ref can be a global ref (not instantiated inside of the component) and it seems like the bug still occurs. In the minimal reproduction playground, the ref is created inside <script setup>
for simplicity.
EDIT: Something else I forgot to add is that it seems the infinite loop is not entered when using onErrorCaptured
, it only happens for config.errorHandler
.