Browse Source

ref(js): Remove UNSAFE_componentWillReceiveProps (#30663)

Evan Purkhiser 3 years ago
parent
commit
b4ab5c562b
1 changed files with 0 additions and 3 deletions
  1. 0 3
      static/app/components/asyncComponent.tsx

+ 0 - 3
static/app/components/asyncComponent.tsx

@@ -114,9 +114,6 @@ export default class AsyncComponent<
     }
   }
 
-  // Compatibility shim for child classes that call super on this hook.
-  UNSAFE_componentWillReceiveProps(_newProps: P, _newContext: any) {}
-
   componentDidUpdate(prevProps: P, prevContext: any) {
     const isRouterInContext = !!prevContext.router;
     const isLocationInProps = prevProps.location !== undefined;