nextcloud-libraries / nextcloud-libraries/nextcloud-browser-storage
Page local storage
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 0
- Avg merge
- 5m
- Merged PRs (30d)
- 12
Description
To store global attributes to be shared between components (like localStorage) but that should not survive page refresh like avatar states.
Could add another option ".pageLocal()and stores it inwindow._pageLocal` or something.
I'd use this for https://github.com/nextcloud/spreed/issues/4284 because when people add an avatar when they didn't have one, there is no easy way for a user to force-refresh the avatars apart from logging out
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing browser-storage API and its handling of shared values. Define the page-local option so values can be shared between components during one page session but are cleared on refresh, then verify the behavior against the avatar-state use case described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100