effector / logger

Simple logger with stores inspector
https://npmjs.com/effector-logger
160 stars 22 forks source link

logger throws errors on circular references #108

Closed mendrik closed 1 year ago

mendrik commented 2 years ago

in here:

function copy<T>(a: T): T {
  return JSON.parse(JSON.stringify(a));
}

This breaks if objects are not serializable. I have a tree nodes, which reference their parents and logging those should work.

sergeysova commented 1 year ago

Looks like it is about the same problem #112