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

state.ts not bind to store index #2496

Closed
dimasch opened this issue Feb 25, 2019 · 2 comments
Closed

state.ts not bind to store index #2496

dimasch opened this issue Feb 25, 2019 · 2 comments
Assignees
Labels
bug Bug reports P1: Urgent Priority mark - high priority

Comments

@dimasch
Copy link
Collaborator

dimasch commented Feb 25, 2019

Current behavior

Current state of undefined

Expected behavior

Using reactive state as expected by getters

Steps to reproduce the issue

Add to state some variables and try to use it via getters

Repository

  1. https://github.com/DivanteLtd/vue-storefront/blob/4874488049efcc401119f5995af9afe71650d31f/src/modules/module-template/store/index.ts#L8
  2. https://github.com/DivanteLtd/vue-storefront/blob/4874488049efcc401119f5995af9afe71650d31f/src/modules/module-template/store/state.ts#L4
@pkarw pkarw added bug Bug reports P1: Urgent Priority mark - high priority labels Feb 25, 2019
@dimasch
Copy link
Collaborator Author

dimasch commented Mar 1, 2019

@filrak For me working after add state to index.ts

export const module: Module<ExampleState, any> = {
  namespaced: true,
  state: { example: '' }
  mutations,
  actions,
  getters
}

Before not working....all from state variables undefined.

@pkarw
Copy link
Collaborator

pkarw commented Mar 2, 2019

Thanks!

@pkarw pkarw mentioned this issue Mar 2, 2019
5 tasks
@pkarw pkarw closed this as completed Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports P1: Urgent Priority mark - high priority
Projects
None yet
Development

No branches or pull requests

3 participants