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

local storage vs user meta #1

Open
mustafauysal opened this issue Mar 3, 2021 · 1 comment
Open

local storage vs user meta #1

mustafauysal opened this issue Mar 3, 2021 · 1 comment

Comments

@mustafauysal
Copy link
Member

What if notification data stored in the browser? 🤔

@mustafauysal
Copy link
Member Author

here is the rough idea about implementation:

  • Treat local storage objects as an in-browser transient with TTL.
  • Save notices in the given page with url/hash -> result set
  • In order to do that, wrap notice actions with a specific div which is hidden, parse all supported .notice tags and save the results in the local storage.
  • Update notice count dynamically with js and inject stored notices in the notifications page.

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