bensivo / mapo

0 stars 0 forks source link

Feature: Auto-save every 30 seconds #91

Closed bensivo closed 1 week ago

bensivo commented 1 month ago

Implemented auto-save on a debounce of 15 seconds, but it seems very long in practice.

Maybe we need to do a debounce of 5 seconds?

bensivo commented 4 weeks ago

Switched the autosave to every 2 seconds on debounce, but there are some issues with the "saving" and "saved" text overriding each other.

If another action starts, the timers that run in the observable don't get cancelled, so they can overlap with the future events. Need to find a way to cancel those timers if the value changes.

bensivo commented 4 weeks ago

2 seconds still feels slow. Maybe 1.5

bensivo commented 3 weeks ago

Found a bug that may be related to auto-save, when we export a file to Downloads, it gets saved with a file id. Then when we import it back, it gives a 404 because it's tryign to save with the same file id

bensivo commented 3 weeks ago

Decided to make a new bug for this