effector-devtools
effector-devtools copied to clipboard
Wrap JSON.stringify in try-catch
Wrap JSON.stringify in try-catch to avoid any stringify exception, like with circular object
There are bunch of checks inside JSON.stringify, I conclude you are trying to avoid try-catch, maybe because of performance concerns, but I think you cannot foresee and check all possible objects, which could cause an error, so try-catch is vital here.