From reading through the issues, #13 seems to suggest that I should be importing observable, computed, etc. from angular-mobx rather than from mobx in order to allow AoT.
However, this seems to prohibit the use of @observable.ref, @observable.shallow, and all other variants. When using @observable.ref TypeScript complains with:
TS2339: Property 'ref' does not exist on type '(...args: any[]) => any'
I haven't gotten to the point where I need to worry about AoT just yet, as such I'll simply import from mobx directly for now, but I thought this was an issue worth mentioning.
From reading through the issues, #13 seems to suggest that I should be importing
observable
,computed
, etc. fromangular-mobx
rather than frommobx
in order to allow AoT.However, this seems to prohibit the use of
@observable.ref
,@observable.shallow
, and all other variants. When using@observable.ref
TypeScript complains with:I haven't gotten to the point where I need to worry about AoT just yet, as such I'll simply import from
mobx
directly for now, but I thought this was an issue worth mentioning.Thank you for your work!