shprink / ionic-native-transitions

[Maintenance only] Native transitions (iOS & Android) for Ionic Framework
https://www.npmjs.com/package/ionic-native-transitions
MIT License
572 stars 112 forks source link

Allow transition to same state with different params #112

Closed kenmickles closed 8 years ago

kenmickles commented 8 years ago
shprink commented 8 years ago

why using .is over something else? BTW cannot merge that.

TomSeldon commented 8 years ago

Was about to open a PR to do the same thing.

why using .is over something else?

Currently as state transitions to states with the same name are blocked, the following example will not work:

$ionicNativeTransitions.stateGo('detail', {
    id: 1
});

// At a later point from within the `detail` state

$ionicNativeTransitions.stateGo('detail', {
    id: 2
});

That will be blocked as only the state name is checked, but that's clearly a bug as we're specifying a different ID for the view.

As this PR seems to have gone a bit stale I'd be happy to open a new one without the conflicts.

shprink commented 8 years ago

you are right, please do @TomSeldon 👍 thanks very much.

shprink commented 8 years ago

no need to commit the dist files. I will build after the merge and release a new version

TomSeldon commented 8 years ago

Ok great, will get a PR up now 👍

TomSeldon commented 8 years ago

Addressed in https://github.com/shprink/ionic-native-transitions/pull/126