kolodny/jsan

Skip data which throws on `value.toJSON`

Closed this issue · 3 comments

To skip data we don't have access to, we could add a try-catch in

value = value.toJSON(key);

It would solve issues like zalmoxisus/redux-devtools-extension#407, but not sure it's good to swallow exceptions.

@zalmoxisus Can you provide a simple example to reproduce the error, I can't seem to cause an error to happen

I published v3.1.10 which should catch these errors from now on. Let me know if that works.

Closing for now, feel free to reopen if the problem persists