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:
- Create an object A
- Create a second object B
- Link from object A to object B
- Link from object B to object A
- Expand object A in the sidebar to see object B
- Expand nested object B (underneath A) to see object A again
- 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: