migration additions -- part 3 (adding makeObservable to constructor)

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2021-04-20 13:45:35 +03:00
1 parent 95794af5b2
commit 08787dce1f
139 files changed
+732 -147

No files matched your search

@@ -1,6 +1,6 @@
import "./resizing-anchor.scss";
import React from "react";
import { action, observable } from "mobx";
import { action, observable, makeObservable } from "mobx";
import _ from "lodash";
import { cssNames, noop } from "../../utils";
@@ -165,6 +165,8 @@ export class ResizingAnchor extends React.PureComponent<Props> {
constructor(props: Props) {
super(props);
makeObservable(this);
if (props.maxExtent < props.minExtent) {
throw new Error("maxExtent must be >= minExtent");
}