Open michelvermeulen opened 3 years ago
I'd recommend trying to attach a debugger to the main process, or adding a console.log
inside the dist of vuex-electron. There's a method called mainProcessLogic
that dispatches the actual vuex action node side:
https://github.com/vue-electron/vuex-electron/blob/master/src/shared-mutations.js#L86-L88
Tweaking that might help you expose its secrets. But you'd need to make sure you modify the dist and not the src since that's what will be used.
It's hard to say more without knowing more about how you're trying to test it and not seeing the code. Sometimes when faced with stuff like this I'll try to create a "minimum reproducible error" basically trying to remove as much as possible while still triggering the unexpected behavior.
Hey guys
I’m using this neat module for my electron app but I can’t see any console log or network request when sending it from my store.
If I move the same method to the vue instance it works just fine.
It does send the request etc within the store but it’s impossible to see the console or request in the console of the renderer or even the command line.
I did import the store in the main and the renderer processes.
Any idea if I’m doing something wrong?
thanks