[added] query argument to willTransitionTo

Fixes #246