Stasexual to state-dependent learning