# $state.go is now Async

**URL:** <https://forum.ionicframework.com/t/state-go-is-now-async/40204>\
**Category:** ionic-v1\
**Created:** [December 31, 2015, 4:42am UTC](https://forum.ionicframework.com/t/state-go-is-now-async/40204 "2015-12-31T04:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![candoa84](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@candoa84](https://forum.ionicframework.com/u/candoa84)\
**Post date:** [December 31, 2015, 4:42am UTC](https://forum.ionicframework.com/t/state-go-is-now-async/40204/1 "2015-12-31T04:42:30Z")

</div>

Every since ios9 update my $state.go is not working sync. I have this piece of code in my ionic application

```
$state.go('layout.categories');
window.location.reload();

```

Simple right well the state.go transition do a full page refresh.  
The problem I’m having is that $state.go doesn’t finish before my window.location.reload triggers.

I found this work around.

```
$state.go('layout.categories');
setTimeout(function () {
  window.location.reload();
}, 20)

```

But as you can see it is really messy and it looks really weird. I was wondering if any of you guys encounter this problem if so, do you have any tips for a rookie.

Thanks.

---

<div class="post-metadata">

**Author:** ![cybernatic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cybernatic/32/138808_2.png) [@cybernatic](https://forum.ionicframework.com/u/cybernatic)\
**Post date:** [December 31, 2015, 4:16pm UTC](https://forum.ionicframework.com/t/state-go-is-now-async/40204/2 "2015-12-31T16:16:29Z")

</div>

what about reload attribute ?

`$state.go('layout.categories',{},{reload:true});`
