Skip to content

cramrov/meteor-session-amplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-session-amplify

A Meteor Session object extension that stores the value in Amplify's local storage when set() is called. It automatically inherit all the reactive properties of Meteor Session.

Install

mrt add session-amplify

Usage

Just replace all your Session.set/get calls with SessionAmplify.set/get calls. When set() is called, the parent Session method is called, as well as amplify.store(). When the "subclass" is first created, it loads everything that is in amplify's store inside its keys, so that they can be retrieved right away with get().

Solution implemented by sebastien-b and mentioned in stackoverflow.

About

A Meteor Session object extension that stores the value in Amplify's local storage when set() is called. It automatically inherit all the reactive properties of Meteor Session

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors