-
-
Notifications
You must be signed in to change notification settings - Fork 171
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 value may be undefined on purpose #35
Comments
State values should never be initialized undefined on purpose. It makes them loose reactivity. Initialize them as null if you want to. |
@championswimmer @Nandiin Since this is effectively a wontfix, can we close it? |
So, what kind of cases can prove the problem here, because processing null will have extra burden of judgment, and sometimes the difference between null and undefined cannot be erased @championswimmer |
vuex-module-decorators/src/module/staticGenerators.ts
Line 12 in de82a3e
Since state values might be initialized to undefined on purpose, excluding undefined here would be problmatic.
The text was updated successfully, but these errors were encountered: