We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems that the only way now to use computedFn in model classes is
computedFn
class Model { getSomething = computedFn((params) => "return something"); constructor() { makeAutoObservable(this, { getSomething: false, }); } }
So it looks quite convenient to allow computedFn to be used as an annotation, so it becomes
class Model { getSomething(params) { return "return something"; } constructor() { makeAutoObservable(this, { getSomething: computedFn, }); } }
Can also be done with bounds / not bound versions
The text was updated successfully, but these errors were encountered:
Duplicate of #236
Sorry, something went wrong.
@whalemare is it? #236 doesn't automatically make it useful in makeAutoObservable...
No branches or pull requests
It seems that the only way now to use
computedFn
in model classes isSo it looks quite convenient to allow
computedFn
to be used as an annotation, so it becomesCan also be done with bounds / not bound versions
The text was updated successfully, but these errors were encountered: