Redux-devtools: Uncaught TypeError: Converting circular structure to JSON when redux-form

Created on 26 Mar 2016  路  6Comments  路  Source: reduxjs/redux-devtools

Hi thanks for the awesome project.
Just to report an issue when having redux-devtools and redux-form.
When you implement the simplest example in redux-form you get the error Uncaught TypeError: Converting circular structure to JSON.

Most helpful comment

Actually, it's easy to reproduce, just by having circular references in states, which throughs in JSON.stringify. Don't know about redux-form, but I used to have this problem with redux-router, which uses circular references.

In chrome extension we use jsan, which handle circular references, and as it tries first to do JSON.stringify, there's no performance impact.

Will send a PR with tests in a couple of days.

All 6 comments

Probably you use persistState, don't you? Does this happen without debug_session set?

Can you please write the stack trace?

Actually, it's easy to reproduce, just by having circular references in states, which throughs in JSON.stringify. Don't know about redux-form, but I used to have this problem with redux-router, which uses circular references.

In chrome extension we use jsan, which handle circular references, and as it tries first to do JSON.stringify, there's no performance impact.

Will send a PR with tests in a couple of days.

:+1:

In general having circular references is not very good by itself. cc @erikras

Do you guys still need the stack trace?

Thanks for the cc. This is news to me. Yes, @juanpasolano, the stack trace would be nice.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ejosafat picture ejosafat  路  5Comments

deasems picture deasems  路  7Comments

lior-a picture lior-a  路  4Comments

wojtekmaj picture wojtekmaj  路  13Comments

janusch picture janusch  路  12Comments