Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto save #6

Open
muly opened this issue Oct 29, 2020 · 1 comment
Open

auto save #6

muly opened this issue Oct 29, 2020 · 1 comment

Comments

@muly
Copy link
Contributor

muly commented Oct 29, 2020

No description provided.

@muly
Copy link
Contributor Author

muly commented Oct 30, 2020

option 1: after a certain interval, if the data is modified

  • challenge 1: not sure how to check if the data is modified since last save. also
  • challenge 2: if we detecting changes since last save is not possible, we can just trigger the update just based on the regular interval, but the downside is that update is called even when there is no data changes to save

option 2: trigger update on change of focus to a another chrome tab or page

document.addEventListener('??event to detect moving away from page??', function() {
}

@muly muly changed the title auto save after a certain interval is the data is modified auto save Oct 30, 2020
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

No branches or pull requests

1 participant