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:
committed by
Facebook GitHub Bot
parent
27cff396ad
commit
cf9309b039
@@ -75,15 +75,12 @@ export default class ManagedDataInspector extends PureComponent<
|
||||
ManagedDataInspectorProps,
|
||||
ManagedDataInspectorState
|
||||
> {
|
||||
constructor(props: ManagedDataInspectorProps, context: Object) {
|
||||
super(props, context);
|
||||
this.state = {
|
||||
state = {
|
||||
expanded: {},
|
||||
userExpanded: {},
|
||||
filterExpanded: {},
|
||||
filter: '',
|
||||
};
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(
|
||||
nextProps: ManagedDataInspectorProps,
|
||||
|
||||
Reference in New Issue
Block a user