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

Timer measurements shall be managed by local storage. #45

Open
CreatorDodo opened this issue Jan 31, 2025 · 0 comments
Open

Timer measurements shall be managed by local storage. #45

CreatorDodo opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
enhancement Reflect improvements or feedback

Comments

@CreatorDodo
Copy link
Member

CreatorDodo commented Jan 31, 2025

  1. This is because a timer must be shared among several tabs in one browser.

  2. Data synchronization problems across tabs

    • chrome.storage.local operates asynchronously by default, but the changes are not automatically reflected on all tabs.
    • This means that updating data on one tab does not immediately reflect on the other.
  3. Limit the number of requests

    • Chrome Storage APIs have write restrictions.
    • For chrome.storage.local, requests are restricted 1800 times per minute, while chrome.storage.sync is subject to stricter limits (120 times per minute).
  4. State Management Difficulties

    • Data cannot be imported as synchronously as localStorage, and values must be imported asynchronously through chrome.storage.local.get.
    • Therefore, additional synchronization logic is required to perform state management in frameworks such as React and Vue.
@CreatorDodo CreatorDodo added the enhancement Reflect improvements or feedback label Jan 31, 2025
@CreatorDodo CreatorDodo self-assigned this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Reflect improvements or feedback
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant