disposeOnUnmount(componentInstance, propertyKey | function | function[]) Function (and decorator) that makes sure a function (usually a disposer such as the ones returned by reaction , autorun , etc.) is automatically executed as part of the componentWillUnmount lifecycle event.
Read moreWhat is inject MobX?
The store injection pattern was popularized by the mobx-react library. It refers to a now obsolete way of accessing the MobX stores across the component tree . It was introduced because the React legacy context was rather awkward to use.
Read moreHow do you inject a MobX store?
import React from ‘react’; import Panel from ‘./Panel’; import {inject, observer} from ‘mobx-react’; @inject(allStores => ({ form: allStores. store. form, })) @observer export default class Creator extends React. Component { connect() { console.
Read more