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

don't execute getters on vuex init #849

Closed
wants to merge 1 commit into from

Conversation

cjpearson
Copy link

Relating to issue #848 this change avoids cloning the getters when creating the initialStore. As a result the getters will no longer all be executed on init.

@Akryum
Copy link
Member

Akryum commented Jan 24, 2019

Executing the getters is necessary to save their values alongside the initial state of the store.

@Akryum Akryum closed this Jan 24, 2019
@cjpearson
Copy link
Author

Is there a reason we need to save the values instead of recomputing them? Executing them immediately can cause issues with getters that should not be run on the initial state.

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

Successfully merging this pull request may close these issues.

2 participants