New user store structure and updated packages

This commit is contained in:
Jori Lallo
2016-06-25 23:31:22 -07:00
parent 3bbdaecbf2
commit a2a642c16c
11 changed files with 167 additions and 135 deletions

13
src/stores/index.js Normal file
View File

@@ -0,0 +1,13 @@
import UserStore, { USER_STORE } from './UserStore';
import { autorun } from 'mobx';
const stores = {
user: new UserStore(),
};
// Persist store to localStorage
autorun(() => {
localStorage.setItem(USER_STORE, stores.user.asJson);
});
export default stores;