ember-twiddle icon indicating copy to clipboard operation
ember-twiddle copied to clipboard

Autosave

Open Gaurav0 opened this issue 9 years ago • 4 comments

But with an option to turn this off.

Gaurav0 avatar Jul 22 '15 13:07 Gaurav0

This sounds tricky to me. Isn't this more about making the Save action more accessible? Or maybe buffering to localstorage so the chance of losing changes is smaller? I think saving to persistence should be a conscious action.

joostdevries avatar Jul 31 '15 08:07 joostdevries

I agree that it should be conscious, and having it more available, à la jsfiddle, in the header. This may also solve #194. Localstorage sound like a really nice "Doh!" buffer to add as well. Too many people auto persisting at a high rate can't be great.

sheriffderek avatar Feb 27 '16 22:02 sheriffderek

RE auto persisting at a high rate can't be great. and saving to persistence should be a conscious action.

why @sheriffderek and @joostdevries?

cromwellryan avatar Mar 25 '16 02:03 cromwellryan

@cromwellryan One reason would be that your gist's revision history would grow very quickly and then become useless and quickly up into the hundreds if not thousands. I like to use twiddle to show short walk-throughs of Ember things - and I like to save at each important step of the process. Then the gist has the history of each addition to complete the example. I think that the local storage idea would be great.

I'm not sure what the details are on the github API - but with most APIs I've worked with have max request limits. I would imagine if thousands of us were using twiddle and autosaving every 30 seconds that our current arrangement with github may need to be reassessed. But I don't know the facts behind that. I would be interested to know.

sheriffderek avatar Mar 25 '16 18:03 sheriffderek