Coder Social home page Coder Social logo

angular-stored-object's Introduction

student, programmer, radiologist, father

open-source GraphQL development sponsored primarily by โœจ the Guild โœจ

  • currently working ๐Ÿ”ญ on a schema stitching executor with support for incremental delivery...
  • consider ๐ŸŒฑ sponsoring my work...
  • want to hear more? reach me at ๐Ÿ“ซ [email protected]

angular-stored-object's People

Contributors

yaacovcr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

angular-stored-object's Issues

Feature Request: setDefaultStrategy then createOrUpdate

as discussed with Yaacov:

In theory, a combined method could be used that creates
or updates as necessary and use a default storage strategy, that is perhaps
specified when the service is created. I think this is a reasonable feature
request, especially useful when the storage strategy is not likely to
change.

_setup and __loadIntoMemory are inconsistent

in _loadIntoMemory method, we have
_storageType = (_storageStrategy === 'localStrategy') ? 'localStorage' : 'sessionStorage';
while in _setup we have
_storageType = (storageStrategy === 'localStorage') ? 'localStorage' : 'sessionStorage';

I think this 'localStrategy' in loadIntoMemory is messing with things, and so it results after a reload in having in sessionStorage things meant to be in localStorage

get from local storage at application start

Hello,

This project is very promising, but I think it miss one main use case of local storage : to be able to get back information from previous session when starting the application.

$create should not check the key is not yet used, and instanciate the value with what is found in the local storage, when the strategy used is localStorage

Or at least there should be a $get(strategey) method doing something similar.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.