score:1

Accepted answer

the onenter function takes two arguments. nextstate and transition. the value you're looking for is inside of nextstate.params:

onenter: function(nextstate, transition) {
    let bar = nextstate.params.bar;
}

Related Query

More Query from same tag