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

Store getters do not re-evaluate on dynamic module registration #1480

Closed
SebastianS90 opened this Issue Jan 5, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@SebastianS90
Copy link

SebastianS90 commented Jan 5, 2019

Version

3.0.1

Reproduction link

https://codesandbox.io/s/ll6zjklq97

Steps to reproduce

  • Open the CodeSandbox
  • Click "Register Module"

What is expected?

All four values should switch to true

What is actually happening?

Only the values based on watchers from the component switch to true

@mozzkay

This comment has been minimized.

Copy link

mozzkay commented Jan 7, 2019

The getters will be exposed on the store.getters object.
So you should use $store.getters.hasModule.

@SebastianS90

This comment has been minimized.

Copy link

SebastianS90 commented Jan 7, 2019

My bad, thanks for the hint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment