-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Exception in TS if @observable has no initializer #1072
Labels
Comments
Can you set up a reproduction? Ideally a PR with an additional typescript unit test? |
mweststrate
added a commit
that referenced
this issue
Jul 6, 2017
mweststrate
pushed a commit
that referenced
this issue
Jul 6, 2017
mweststrate
added a commit
that referenced
this issue
Jul 6, 2017
mweststrate
added a commit
that referenced
this issue
Jul 6, 2017
Make sure fields are initialized before observing them, fixes #1072
Released fix as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you try to observe (intercept, ...) property without initial value before first access then you will get exception. I think we need to add
runLazyInitializers
to TS also. Or even rewrite logic to make init more consistency between TS and JS. It's really bit hacky now.The text was updated successfully, but these errors were encountered: