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

fix: initialize root state as an empty object if state function returns no value #927

Merged
merged 3 commits into from
Oct 11, 2017

Commits on Aug 31, 2017

  1. assert state to be an object

    Just a moment ago had hard time debugging this code:
    ```js
    const state = () => {}
    ...
    new Vuex.Store({
        state,
        modules,
        ...
    })
    ```
    If state is `undefined` and you use modules, Vuex can't create store. This small change will make it easier to find this error.
    n7olkachev authored Aug 31, 2017
    Configuration menu
    Copy the full SHA
    04ffdd0 View commit details
    Browse the repository at this point in the history
  2. fix styling

    n7olkachev authored Aug 31, 2017
    Configuration menu
    Copy the full SHA
    6711565 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2017

  1. Configuration menu
    Copy the full SHA
    16d8d4c View commit details
    Browse the repository at this point in the history