From 5b4ff2a06a2f9663b9497de78dd1afe548b14a38 Mon Sep 17 00:00:00 2001 From: ntr Date: Tue, 18 Sep 2018 20:16:16 +1000 Subject: [PATCH] login status component --- client/src/main.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main.jsx b/client/src/main.jsx index 8bc56a00..c2af0306 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -8,14 +8,14 @@ const createSocket = require('./socket'); const StatusContainer = require('./components/status.container'); -const ws = createSocket(); - const store = createStore( combineReducers({ account: reducers.accountReducer, }), ); +const ws = createSocket(store); + store.subscribe(() => console.log(store.getState())); const Cryps = () => (