[PR #870] [MERGED] cache on page unload not just component cleanup #963

Closed
opened 2026-03-03 00:23:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BoostIO/BoostNote-App/pull/870
Author: @ButteryCrumpet
Created: 3/14/2021
Status: Merged
Merged: 3/15/2021
Merged by: @Rokt33r

Base: masterHead: bug/cache-on-unload


📝 Commits (2)

  • 06ea698 cache on page unload not just component cleanup
  • 5db2f9a remove unused import

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 src/cloud/lib/editor/hooks/useRealtime.ts (+14 -0)

📄 Description

Issue

Loss of data occuring when connection is down and user reloads or closes page.

Fix

Push to cache on the beforeunload event


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BoostIO/BoostNote-App/pull/870 **Author:** [@ButteryCrumpet](https://github.com/ButteryCrumpet) **Created:** 3/14/2021 **Status:** ✅ Merged **Merged:** 3/15/2021 **Merged by:** [@Rokt33r](https://github.com/Rokt33r) **Base:** `master` ← **Head:** `bug/cache-on-unload` --- ### 📝 Commits (2) - [`06ea698`](https://github.com/BoostIO/BoostNote-App/commit/06ea698e5303095cd5d24e0754a1106f0ac6a683) cache on page unload not just component cleanup - [`5db2f9a`](https://github.com/BoostIO/BoostNote-App/commit/5db2f9a7fb521a8160064acfd2c504ffc24d4c0c) remove unused import ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cloud/lib/editor/hooks/useRealtime.ts` (+14 -0) </details> ### 📄 Description ## Issue Loss of data occuring when connection is down and user reloads or closes page. ## Fix Push to cache on the `beforeunload` event --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:23:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#963
No description provided.