You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to exclude a field from being made observable using makeObservable with false annotation, as documented in the MobX documentation. The following code should work:
Intended outcome:
I'm trying to exclude a field from being made observable using
makeObservable
withfalse
annotation, as documented in the MobX documentation. The following code should work:Actual outcome:
I'm getting contradictory TypeScript/ESLint errors:
count
property is not specified inmakeObservable
:count: false
as suggested by the first error:This creates a catch-22 situation where ESLint requires the annotation but then TypeScript doesn't accept it.
How to reproduce the issue:
I've created a minimal reproduction repository that demonstrates this issue:
example-mobx-eslint-bug
Steps to reproduce:
Versions
The text was updated successfully, but these errors were encountered: