I have the following code
export const NavViews = {
test: "test1",
test2: "test2"
} as const;
When I do
export class MainViewsStore {
@computed
get isLandingPage() {
return this.primaryView === NavViews.test;
}
}
When I call the code this._mainViewsStore.isLandingPage, it's false even though this.primaryView === NavViews.test
I'm using mobx and typescript. The NavViews.test is undefined. Has anyone seen a situation like that before?