INNER CODE UNIT · JavaScript
bootApp
jippi/hashi-ui · frontend/src/main.js:30
function bootApp() {
configureStore()
.then(store => {
renderApp(store)
})
.catch(err => {
// Start a retry loop if none exist
if (!retryInterval) {
retryInterval = window.setInterval(bootApp, 5000)
}
retries++
ReactDOM.render(
<ErrorApp uncaughtException={err} retryCount={retries} maxRetries={10} />,
document.getElementById("app")
)