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

For those who continue to fear this problem, the solution I found was to remove StrictMode from react itself

import { createRoot } from 'react-dom/client'
import './index.css'
import ARPreviewer from './ARPreviewer'

createRoot(document.getElementById('root')).render(
    <ARPreviewer />
)

StrictMode React Docs
Use StrictMode to enable additional development behaviors and warnings for the component tree inside:
Strict Mode enables the following development-only behaviors:

Your components will re-render an extra time to find bugs caused by impure rendering.
Your components will re-run Effects an extra time to find bugs caused by missing Effect cleanup.
Your components will be checked for usage of deprecated APIs.
Strictmode docs

1 Like