Skip to content
New issue

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

feat: add requiresReaction to Computed #974

Open
amondnet opened this issue Dec 19, 2023 · 0 comments
Open

feat: add requiresReaction to Computed #974

amondnet opened this issue Dec 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@amondnet
Copy link
Collaborator

amondnet commented Dec 19, 2023

https://mobx.js.org/computeds.html#requiresreaction

It is recommended to set this one to true on very expensive computed values. If you try to read its value outside of the reactive context, in which case it might not be cached, it will cause the computed to throw instead of doing an expensive re-evalution.

@amondnet amondnet self-assigned this Dec 19, 2023
@amondnet amondnet added the enhancement New feature or request label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant