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

Implement data syncing between Redux state, IndexedDB, and server #81

Open
1 of 11 tasks
apmwebdev opened this issue Nov 20, 2023 · 0 comments
Open
1 of 11 tasks
Assignees
Labels
data sync Related to syncing data between local, remote and in memory data stores enhancement New feature or request hub issue An issue for tracking a group of related issues

Comments

@apmwebdev
Copy link
Owner

apmwebdev commented Nov 20, 2023

There are several pieces of data that should be persisted in the browser. The reasons for this are varied, but include:

  1. Increasing performance: It's faster to access a cached value locally while fetching data from the server in the background.
  2. Enabling guest user functionality: Guest users can't persist data on the server, so there are some features that require them to write to a local storage of some sort instead.
  3. Persisting state across reloads and different sessions: For auth in particular, it's important to be able to maintain state across page reloads. While this is technically accomplished via cookie, it's helpful to have the user's name locally so that it can be displayed immediately when the page is reloaded.
  4. Allowing "offline mode": This is potentially a more advanced use case, but there theoretically isn't anything stopping the app from working in an offline mode if enough data is cached locally. There are lots of kinks to iron out with this, however, such as how to reconcile local state and server state.

Things to persist locally

  1. ✅ Guesses and attempts
  2. Puzzle data
  3. ✅ Search panel searches
  4. Default hint profiles
  5. User hint profiles
  6. Hint profile/panel state
  7. User settings

Related Issues

@apmwebdev apmwebdev added enhancement New feature or request hub issue An issue for tracking a group of related issues labels Nov 20, 2023
@apmwebdev apmwebdev self-assigned this Nov 20, 2023
@apmwebdev apmwebdev added the data sync Related to syncing data between local, remote and in memory data stores label Jan 8, 2024
@apmwebdev apmwebdev changed the title Persist some data locally Implement data syncing between Redux state, IndexedDB, and server Apr 1, 2024
@apmwebdev apmwebdev pinned this issue Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data sync Related to syncing data between local, remote and in memory data stores enhancement New feature or request hub issue An issue for tracking a group of related issues
Projects
None yet
Development

No branches or pull requests

1 participant