Running queries after setting temporaryStates

Check out this post, I was running into similar issues as well...