From 3d700f470cc2a95b0701dec76628d3e5c44f74d3 Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Sun, 28 May 2017 15:35:11 +0400 Subject: [PATCH] Turns out that batchActions doesn't play nicely with thunk --- ui/js/main.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui/js/main.js b/ui/js/main.js index 04027b6f2..969ecfdc0 100644 --- a/ui/js/main.js +++ b/ui/js/main.js @@ -8,7 +8,6 @@ import SplashScreen from 'component/splash.js'; import SnackBar from 'component/snackBar'; import {AuthOverlay} from 'component/auth.js'; import { Provider } from 'react-redux'; -import batchActions from 'util/batchActions' import store from 'store.js'; import { doChangePath, @@ -79,12 +78,10 @@ var init = function() { window.sessionStorage.setItem('loaded', 'y'); //once we've made it here once per session, we don't need to show splash again const actions = [] - actions.push(doDaemonReady()) - actions.push(doChangePath('/discover')) - actions.push(doFetchDaemonSettings()) - actions.push(doFileList()) - - app.store.dispatch(batchActions(actions)) + app.store.dispatch(doDaemonReady()) + app.store.dispatch(doChangePath('/discover')) + app.store.dispatch(doFetchDaemonSettings()) + app.store.dispatch(doFileList()) ReactDOM.render(
{ lbryio.enabled ? : '' }
, canvas) }