0👍
I’ve found a workaround using setTimeout:
app.on('ready', () => {
setTimeout(() => {
store.dispatch('init');
}, 2500);
createWindow();
}
For me it looks like a timing problem, I’ve tried browserWindow
events ready-to-show
and a few more to get the right time to call my store init function but with no effect.
Source:stackexchange.com