Closed jeffijoe closed 2 years ago
:tada: This PR is included in version 3.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@jeffijoe Awesome news! Does it work with mobx's makeObservable
method?
I am not sure since I haven't used it, but I don't see why not, try it out and let me know!
Yeah, I checked it and unfortunately, it doesn't - mobx throws an Invalid annotation
error. If I find any solution, I'll post it here
My recommendation is to use property initializers like this:
class MyClass {
myTask = task(async () => ...)
}
Thank you, that is what I'll do!
Upgrades to the library to support MobX 6. We had to wrap the task in an
action
to prevent MobX from automatically converting it to an action.BREAKING CHANGE: The decorator will break when a MobX decorator is used on the same method.
Closes #32