dappforce / polkaverse

The codebase for PolkaVerse, a reference application built on the Subsocial blockchain. Feel free to use the code in your own Subsocial dapps.
https://polkaverse.com
GNU General Public License v3.0
16 stars 9 forks source link

Losing draft posts since it stores multiple draft posts in the same auto-saved value in Local Storage when you draft multiple posts in parallel that may be from different Spaces #295

Open ltfschoen opened 6 months ago

ltfschoen commented 6 months ago

Current Behavior:

If you are drafting multiple Posts under the same or different Spaces that you haven't published yet in different browser tabs, they all auto-save to the same value in Local Storage, so if you lose your connection, you'll only be able to recover the draft post that you last modified

Expected Behavior:

It should store each post in Local Storage under a Space + Post key, instead of just storing them all in the same place, so if you'll be able to recover multiple draft Posts each from the same or a different Space

Steps To Reproduce:

Refer to the "How to find out what is auto-saved in Local Storage if you draft two posts in parallel that use a different Space?" section in this post https://polkaverse.com/12864/how-to-avoid-losing-your-draft-posts-on-polka-verse-74158

Environment