V1 is using remote.getGlobal('getReduxState');, and right now v2 is using async even driven aproach, that makes the renderer store initialise in a lazy way.
To keep the differences between v1 and v2, I would rather go with default sync way of fetching the initial store data, and make the async lazy way an opt-in via options.
We could use ipcRenderer.sendSync to get it done, instead of remote package, since it works without any workarounds in all electron versions.
Please see #256 for some more discussion related to the topic
V1 is using
remote.getGlobal('getReduxState');
, and right now v2 is using async even driven aproach, that makes the renderer store initialise in a lazy way.To keep the differences between v1 and v2, I would rather go with default sync way of fetching the initial store data, and make the async lazy way an opt-in via options.
We could use
ipcRenderer.sendSync
to get it done, instead ofremote
package, since it works without any workarounds in all electron versions.Please see #256 for some more discussion related to the topic