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
When disposer of autorunAsync or reaction is called after there was a change in their tracked inputs, action/sideEffect is still triggered:
autorunAsync
reaction
//... a is observable... this.a = 1; const dispose = reaction(() => this.a, () => console.log('Reaction run.'), {delay: 1}); this.a = 2; dispose(); // ... Now 'Reaction run.' will still be printed out.
For me the expected behavior would be that calling the disposer also cancels internal timeout.
disposer
The text was updated successfully, but these errors were encountered:
Agreed, PR is welcome :)
Sorry, something went wrong.
Fixed in MobX4
Added test to confirm #1148 is fixed
ea8f603
No branches or pull requests
When disposer of
autorunAsync
orreaction
is called after there was a change in their tracked inputs, action/sideEffect is still triggered:For me the expected behavior would be that calling the
disposer
also cancels internal timeout.The text was updated successfully, but these errors were encountered: