Circular reference leads to infinite nested pages

Describe the bug
If you create a circular reference between two objects, you get an infinite number of nested pages in the sidebar

To Reproduce
Steps to reproduce the behavior:

  1. Create an object A
  2. Create a second object B
  3. Link from object A to object B
  4. Link from object B to object A
  5. Expand object A in the sidebar to see object B
  6. Expand nested object B (underneath A) to see object A again
  7. Repeat step 5 and 6.

Video recording of the steps (note: I started from an existing object, but the effect is the same):

Edit: apologies for the extremely poor video quality. This upload should be better:

Expected behavior
As I expect circular references will just be part of the way Anytype is setup (I don’t see any “illegal” behaviour in that), I think the sidebar should deal with that by not nesting an object that is already present higher up in the tree.

System Information:

  • OS: Windows 11
  • Device Manufacturer/Model: Dell XPS 15
  • Anytype Version: 0.24.0

Additional context
Originally mentioned here

Feature request that would at least make it possible to see all of your nested pages:


I confirm this bug.ㅤㅤㅤㅤㅤ

@sam it seems like this bug was resolved in recent versions. I can’t reproduce it in the way you’ve demonstrated in this video.

You are right!

1 Like