We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If there is a root state property with the same name of a module, the module is prioritized. Right now there is no warning.
// store modules: { users }, state: { users: [] }
store.state.users points to the users module and users state property is shallowed
store.state.users
users
There should be a warning pointing out the mistake and intriguing the user to rename the state property.
The text was updated successfully, but these errors were encountered:
A similar warning has been implemented in #1554.
Sorry, something went wrong.
simplesmiler
Successfully merging a pull request may close this issue.
What problem does this feature solve?
If there is a root state property with the same name of a module, the module is prioritized. Right now there is no warning.
Example:
store.state.users
points to the users module andusers
state property is shallowedWhat does the proposed API look like?
There should be a warning pointing out the mistake and intriguing the user to rename the state property.
The text was updated successfully, but these errors were encountered: