Skip to content

Objects with value key breaks vue-query dev tools on nuxt 2 #131

@achaphiv

Description

@achaphiv

Reproduction:

In chrome, the error is:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    |     property '__ob__' -> object with constructor 'Observer'
    --- property 'value' closes the circle

In firefox:

TypeError: cyclic object value

The only change I made was the third line:

  await fetch("https://jsonplaceholder.typicode.com/todos")
    .then((response) => response.json())
    // The only change
    .then((it) => ({ value: it }))

I noticed this issue because a response had a value key.

As a side note, this sandbox also shows the error from #101.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions