Remove ManagedDataInspector constructor

Summary: The constructor that accepts `context` is deprecated and in turn causes `React.ComponentProps<typeof ManagedDataInspector>` and other type signatures to fail.

Reviewed By: mweststrate

Differential Revision: D22111964

fbshipit-source-id: 71553d749d0d7de6ef34350faa55d04433a639d1
This commit is contained in:
Scott Kyle
2020-06-18 11:03:08 -07:00
committed by Facebook GitHub Bot
parent 27cff396ad
commit cf9309b039

View File

@@ -75,15 +75,12 @@ export default class ManagedDataInspector extends PureComponent<
ManagedDataInspectorProps,
ManagedDataInspectorState
> {
constructor(props: ManagedDataInspectorProps, context: Object) {
super(props, context);
this.state = {
expanded: {},
userExpanded: {},
filterExpanded: {},
filter: '',
};
}
state = {
expanded: {},
userExpanded: {},
filterExpanded: {},
filter: '',
};
static getDerivedStateFromProps(
nextProps: ManagedDataInspectorProps,