After the entry of mobx inject, there is only observable.

export default inject((stores, props, context) => ({
    compStore: stores.compStore,
}))(observer(Comp))

//ro ---

@observer(["compStore"])
There are two ways of

. There are only @ observable attributes in props, and has no @ action function

.
Mar.18,2022
Menu