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

allow to persist single values or the whole configuration in local storage #2

Open
timomayer opened this issue Nov 29, 2017 · 3 comments

Comments

@timomayer
Copy link
Member

No description provided.

@SheepFromHeaven
Copy link
Member

@timomayer so the features which are wanted (?):

  • Being able to access the localStorage through the configuration object
  • Namespaced values in localStorage

@timomayer
Copy link
Member Author

more like configuration.set(name, value, persist);
if persist is true this value is stored in localStorage and will be merged in the configuration on next page load

@SheepFromHeaven
Copy link
Member

@timomayer as separately discussed:

  • the getter interface stays as is (get([key]))
  • the setter interface should take the following options
    • key [required]
    • value [required]
    • storage [optional, default internalState]
    • cacheTime [optional, default 0]

@SheepFromHeaven SheepFromHeaven added this to the 2.1 milestone May 26, 2018
@timomayer timomayer modified the milestones: 2.1, 2.2.0, 2.3.0, 3.1.0 Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants