Ok, I managed to solve this myself. Not a great solution since I now have to control the transition manually but it turns out that states have a property called changes that can be used to find out what has been changed in the state compared to the default state.