Skip to content

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.

1 participant