Redux Store Refactor (#886)
Redux Store Refactor (#886)

* Change the store to make adding middleware and enhancers more accommodating  (#602)

* wrapped the store creation all inside the default function

* set-up middleware and enhancers array to allow building what is included. For example the case of having a store specific to the main process vs the renderer process or even could be used to combine the development and production stores and add what is needed based on the ENV.

* Code style changes

* Fixed flow annotation

ACalix/sprinthub,Sebkasanzew/Electroweb,foysalit/wallly-electron,surrealroad/electron-react-boilerplate,lhache/katalogz,irwinb/table-viewer,TheCbac/MICA-Desktop,surrealroad/electron-react-boilerplate,barbalex/kapla3,kimurakenshi/caravanas,cosio55/app-informacion-bitso,jaytrepka/kryci-jmena,ycai2/visual-git-stats,chentsulin/electron-react-boilerplate,cosio55/app-informacion-bitso,nantaphop/redd,TheCbac/MICA-Desktop,sdlfj/eq-roll-tracker,kivo360/ECC-GUI,anthonyraymond/joal-desktop,surrealroad/electron-react-boilerplate,ycai2/visual-git-stats,nantaphop/redd,foysalit/wallly-electron,ACalix/sprinthub,anthonyraymond/joal-desktop,Sebkasanzew/Electroweb,joshuef/peruse,anthonyraymond/joal-desktop,joshuef/peruse,sdlfj/eq-roll-tracker,lhache/katalogz,kimurakenshi/caravanas,irwinb/table-viewer,jaytrepka/kryci-jmena,chentsulin/electron-react-boilerplate,barbalex/kapla3,kivo360/ECC-GUI