Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access state in main process #31

Closed
step4 opened this issue Mar 13, 2019 · 1 comment
Closed

access state in main process #31

step4 opened this issue Mar 13, 2019 · 1 comment

Comments

@step4
Copy link

step4 commented Mar 13, 2019

I'm using this package within the electron-vue boilerplate template.

my module looks like this:(pathsData.js)

const state = {
  filePath: 'test',
  framesFolderPath: '',
}

export default {
  state
}

my main process js file starts with:

import store from '../renderer/store'
console.log(store.state.pathsData)

the output this console.log is:
{ filePath: [Getter/Setter], framesFolderPath: [Getter/Setter] }

when I try to log filePath with:

console.log(store.state.pathsData.filePath)

I expect the string test but nothing will be logged in the console

@step4
Copy link
Author

step4 commented Mar 13, 2019

nevermind was my fault.
Can be closed

@step4 step4 closed this as completed Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant