Move state update to be single threaded
Move state update to be single threaded

UKHomeOffice/drt-scalajs-spa-exploration,UKHomeOffice/drt-scalajs-spa-exploration,UKHomeOffice/drt-scalajs-spa-exploration