vueuse / vueuse

Collection of essential Vue Composition Utilities for Vue 2 and 3

Home Page:https://vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[useEventSource]: Hot Reload - Maximum recursive updates exceeded

jaketig opened this issue · comments

Describe the bug

Hot Reload with Nuxt 3 seems to be causing an infinte render loop with useEventSource.
See reproduction.

Uncaught (in promise) Maximum recursive updates exceeded in component <nuxt-root>. 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.

Reproduction

https://stackblitz.com/edit/nuxt-starter-vn3hms?file=app.vue

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 673.77 MB / 15.75 GB
  Binaries:
    Node: 20.11.0 - C:\Program Files\nodejs\node.EXE     
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD        
    pnpm: 8.15.1 - C:\ProgramData\chocolatey\bin\pnpm.EXE
  Browsers:
    Edge: Chromium (123.0.2420.97)
  npmPackages:
    @vueuse/components: ^10.9.0 => 10.9.0 
    @vueuse/math: ^10.9.0 => 10.9.0 
    @vueuse/nuxt: ^10.9.0 => 10.9.0

Used Package Manager

npm

Validations