logger icon indicating copy to clipboard operation
logger copied to clipboard

logger throws errors on circular references

Open mendrik opened this issue 1 year ago • 0 comments

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.

mendrik avatar Oct 14 '22 18:10 mendrik