-
Hello, I updated a project from mobx 4 to mobx 6.6.1 and I encountered the error:
The same error also appear with the the decorator '@action'. The project is quiet big and there is a lot of places where I need to handle the suggested change. Is there a convenient way to avoid this refactoring, and have a consistent behavior with mobx 4? Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, as far as I know there is no way to automate this |
Beta Was this translation helpful? Give feedback.
-
TypeScript has a setting to force adding It is not the same as adding Mobx |
Beta Was this translation helpful? Give feedback.
TypeScript has a setting to force adding
override
TS keyword to child's methods: https://dev.to/lioness100/introducing-typescript-override-keyword-4b36It is not the same as adding Mobx
override
keyword, but it might be helpful to run it once to detect what methods require adding@override
Mobx decorator