Skip to content

Fix memory leak and autosave not working in mobile devices after showing all running apps and returning - #85

Merged
lauslim12 merged 2 commits into
mainfrom
fix-memory-leak-in-mobile-devices
Mar 11, 2026
Merged

lauslim12 merged 2 commits into
mainfrom
fix-memory-leak-in-mobile-devices

Conversation

@lauslim12

Copy link
Copy Markdown
Owner

This is due to subscribing to the store in the root of the application instead of at the useEffect. Very subtle.

Also, autosave is not working in an edge case: use a phone, write something, get it to autosave, use the "Show All Running Apps" feature, go back to the application, try to write something, the autosave does not work anymore. I've fixed that in 290eb48 and written a test in 8817ed2 to prevent it from happening again.

@lauslim12 lauslim12 changed the title Fix memory leak and autosave not working in mobile devices Fix memory leak and autosave not working in mobile devices after showing all apps and returning Mar 11, 2026
@lauslim12 lauslim12 changed the title Fix memory leak and autosave not working in mobile devices after showing all apps and returning Fix memory leak and autosave not working in mobile devices after showing all running apps and returning Mar 11, 2026
@lauslim12
lauslim12 merged commit 64267aa into main Mar 11, 2026
2 checks passed
@lauslim12
lauslim12 deleted the fix-memory-leak-in-mobile-devices branch March 11, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant