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

Add missing text and code #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

qinyuhang
Copy link

https://mobx.js.org/refguide/autorun.html
Missing text: The return value from autorun is a disposer function, which can be used to dispose of the autorun when you no longer need it.
Missing code:

const disposer = autorun( reaction => { /* do some stuff */ } );
disposer();

// or

autorun( reaction => {
  /* do some stuff */
  reaction.dispose();
} );

`https://mobx.js.org/refguide/autorun.html` 
Missing text: `The return value from autorun is a disposer function, which can be used to dispose of the autorun when you no longer need it. `
Missing code:
```javascript
const disposer = autorun( reaction => { /* do some stuff */ } );
disposer();

// or

autorun( reaction => {
  /* do some stuff */
  reaction.dispose();
} );
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant