nextcloud-libraries / nextcloud-libraries/nextcloud-browser-storage

Page local storage

Open
#7 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.