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, ManagedDataInspectorProps,
ManagedDataInspectorState ManagedDataInspectorState
> { > {
constructor(props: ManagedDataInspectorProps, context: Object) { state = {
super(props, context);
this.state = {
expanded: {}, expanded: {},
userExpanded: {}, userExpanded: {},
filterExpanded: {}, filterExpanded: {},
filter: '', filter: '',
}; };
}
static getDerivedStateFromProps( static getDerivedStateFromProps(
nextProps: ManagedDataInspectorProps, nextProps: ManagedDataInspectorProps,