import { buildClientApp } from "reaction/Artsy/Router/client"
import { routes } from "reaction/Apps/Search/routes"
import { data as sd } from "sharify"
import React from "react"
import ReactDOM from "react-dom"

const mediator = require("desktop/lib/mediator.coffee")

buildClientApp({
  routes,
  context: {
    user: sd.CURRENT_USER,
    mediator,
  },
})
  .then(({ ClientApp }) => {
    ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root"))
    document.getElementById("search-results-skeleton").remove()
  })
  .catch(error => {
    console.error(error)
  })

if (module.hot) {
  module.hot.accept()
}

import { buildClientApp } from "reaction/Artsy/Router/client"
import { routes } from "reaction/Apps/Search/routes"
import { data as sd } from "sharify"
import React from "react"
import ReactDOM from "react-dom"

const mediator = require("desktop/lib/mediator.coffee")

buildClientApp({
  routes,
  context: {
    user: sd.CURRENT_USER,
    mediator,
  },
})
  .then(({ ClientApp }) => {
    ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root"))
    document.getElementById("loading-container").remove()
  })
  .catch(error => {
    console.error(error)
  })

if (module.hot) {
  module.hot.accept()
}

Update identifer of loading container
Update identifer of loading container

Follow up to https://github.com/artsy/force/pull/3910

The identifier was updated following review feedback, but the
client-side callback which removes the loading container still
referenced the old value. This commit makes that update.
