Fixed Error: only one instance of babel-polyfill is allowed

This commit is contained in:
Akshit Kr Nagpal 2018-07-10 15:10:47 +05:30 committed by Saúl Ibarra Corretgé
parent 736f2ae1cb
commit 019921ffe6
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ class Conference extends Component<Props, State> {
constructor() {
super();
// External API will load an instance of babel-polyfill. Hence we
// should remove existing babel-polyfill instance.
delete global._babelPolyfill;
this.state = {
isLoading: true
};