unlock-protocol / locked.fyi

A basic notes application where notes are stored on IPFS and only visible by members of a lock
https://locked.fyi/
MIT License
21 stars 7 forks source link

Saving the first note takes forever. #39

Closed julien51 closed 4 years ago

julien51 commented 4 years ago

For some reason, saving one's first note takes a (very) long time. We need to investigate this and tell the user why this is so slow.

julien51 commented 4 years ago

After investigating more. It definitely only happens with the first note saved. It's not a matter of time, because as soon as the 2nd note is saved, the second one appears.

Another interesting realization is that the 1st note is saved because it can be edited even though it is not found in the Reader component.

I also tried to save the first story a second time and a third time. It eventually is loaded thru the reader.

I wonder if this is some kind of "caching" issue with 3box.

julien51 commented 4 years ago

Going further, it looks like this is not an issue with threads themselves, because when reaching the 2nd thread, the posts are immediately saved and accessible. Which points to the space as the culprit.

julien51 commented 4 years ago

Another interesting translation realization is that the "writable" version of the story is actually accessible thru the editor even though the story cannot be found in the read only area.

julien51 commented 4 years ago

This now seems to be fixed!