Skip to content

Local storage fallback and middleware

Pre-release
Pre-release
Compare
Choose a tag to compare
@bredele bredele released this 31 Dec 23:19
· 156 commits to master since this release

Store now support local storage fallback

store.local('mystore'); //reset with localstorage
...
store.local('mystore', true); //save in localstorage

and can be extended through its middleware engine.

store.use(function(obj) {
  obj.save = function(){
    //save in server
  };
});