Modifying all storage to use session storage. Also adding an abstraction layer to add current user id as a prefix to most keys.

Этот коммит содержится в:
Christopher Speller
2015-07-08 09:55:24 -04:00
родитель 95b9f87288
Коммит 7f5ebb42b5
11 изменённых файлов: 192 добавлений и 100 удалений

Просмотреть файл

@@ -5,12 +5,16 @@
to the server on page load. This is to prevent other React controls from spamming
AsyncClient with requests. */
var BrowserStore = require('../stores/browser_store.jsx');
var AsyncClient = require('../utils/async_client.jsx');
var SocketStore = require('../stores/socket_store.jsx');
var Constants = require('../utils/constants.jsx');
module.exports = React.createClass({
componentDidMount: function() {
// Initalize stores
BrowserStore.initalize();
/* Start initial aysnc loads */
AsyncClient.getMe();
AsyncClient.getPosts(true);