Deepar.initialize() called but DeepAR is currently being initialized

Hi, I’m using web sdk and initializing code in react. Below is my code :

import * as deepar from 'deepar'

function App() {
let deepAR = null;
if(!deepAR){
      deepAR = await deepar.initialize({
        licenseKey: 'key_here',
        previewElement: document.querySelector('#deepar-div'),
        effect:'/assets/effects/6.deepar',
      });
    }
}

Now i’m always getting

deepar.initialize() called but DeepAR is currently being initialized.

Can you check this isn’t called twice?