Two ways to duplicate object

I just realized that there are two ways to duplicate object.

  1. Right click the linked object inside a page, and choose “duplicate”
  2. Click the three-dot button and choose “duplicate object”

These two methods are different. The first one is a shallow copy and it returns an object with the same ID, while the second one is a deep copy, which return a modal containing all the contents, but IDs are different.

The first one keeps the same link structure with other objects, but the second one is born an orphan.

Perhaps you guys have noticed that :sweat_smile:, but I didn’t found this in doc or somewhere. So I write it here if someone needs this.

2 Likes

Well, I just found the solution answer after I posted this. :sweat_smile:

https://community.anytype.io/t/duplicated-pages-are-linked-pages/1151/22

If this is duplicate, please help close this.

2 Likes

Hey, nice observation. No need to close the topic since you posted it in the Discussion category, that’s what this place is all about!

It’s born an orphan until you define it’s relations…then it has a family :face_holding_back_tears:

1 Like

Haha! I’m really trying my best to make sure every single object has a family.:stuck_out_tongue_winking_eye:

1 Like