question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cyclic object value in Slick.dataview.js addGroupTotals

See original GitHub issue
function addGroupTotals(group) {
      var gi = groupingInfos[group.level];
      var totals = new Slick.GroupTotals();
      totals.group = group;
      group.totals = totals;
      if (!gi.lazyTotalsCalculation) {
        calculateTotals(totals);
      }
}

Link

totals.group = group and group.totals = totals

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
6paccommented, Apr 9, 2020

Also see here: https://stackoverflow.com/questions/9382167/serializing-object-that-contains-cyclic-object-value

Most JSON converters give you some way of putting hooks into a data object. Cyclic structures are a standard occurrence in data structures.

1reaction
gadzhovcommented, Apr 10, 2020

I believe you are right, there isn’t a problem. Since I’m having a solution for my special case I’m closing the issue. Thank you for the support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: cyclic object value - JavaScript - MDN Web Docs
The JavaScript exception "cyclic object value" occurs when object references were found in JSON. JSON.stringify() doesn't try to solve them ...
Read more >
Serializing object that contains cyclic object value
First is Douglas Crockford's cycle.js, second is my siberia package. Both work by first "decycling" the object, i.e., constructing another object (without ...
Read more >
JavaScript TypeError - Cyclic object value - GeeksforGeeks
This JavaScript exception cyclic object value occurs if the references of objects were found in JSON. JSON.stringify() fails to solve them.
Read more >
TypeError: cyclic object value - JavaScript
The JavaScript exception "cyclic object value" occurs when object references were found in JSON. JSON.stringify() doesn't try to solve them and fails ...
Read more >
Error in render: "TypeError: cyclic object value" in dx-data-grid ...
Issue Type bug report Description using DevExtreme 18.1.4 and DevExtreme-Vue 18.1.4-alpha.6 with the following code generates "cyclic object ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found