(props)
| 1132 | } |
| 1133 | |
| 1134 | constructor(props) { |
| 1135 | super(props) |
| 1136 | // Synchronize our observableProp with the actual prop on the first render. |
| 1137 | this.observableProp = this.props.prop |
| 1138 | makeObservable(this, { |
| 1139 | observableProp: observable, |
| 1140 | computed: computed, |
| 1141 | // Mutates observable therefore must be action |
| 1142 | componentDidUpdate: action |
| 1143 | }) |
| 1144 | } |
| 1145 | |
| 1146 | componentDidMount(): void { |
| 1147 | // Reactions/autoruns must be created in componenDidMount (not in constructor). |
nothing calls this directly
no test coverage detected