aadeshkulkarni / figuringout

Blogging + Social Media + AI | Opensource | Javascript | ReactJS | HonoJS | Prisma
https://figuringout.life
MIT License
72 stars 78 forks source link

Bug | AutoSave is not actually autosaving #226

Open shreenarayan123 opened 5 days ago

shreenarayan123 commented 5 days ago

Where ?

Procedure to Generate the situation

  1. Click on write icon on Navbar
  2. Start a new story write title and desc
  3. After 5-10 seconds refresh the page wait for 5-10 sec
  4. Title and Desc are still empty not displaying the earlier content
aadeshkulkarni commented 4 days ago

I can confirm this to be true. write-draft object in localstorage is empty.

Vishnu-dholu commented 4 days ago

I have fixed it. Here

shreenarayan123 commented 1 day ago

@Vishnu-dholu But its still not displaying on screen after refresh

Vishnu-dholu commented 1 day ago

@Vishnu-dholu But its still not displaying on screen after refresh

because you are instantly reloading the page after updating the content. The autoSaveHandler is updating or autosaving the data in interval of 15 sec. snippet