Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed popTo method #2179

Merged
merged 1 commit into from
Aug 4, 2017
Merged

Fixed popTo method #2179

merged 1 commit into from
Aug 4, 2017

Conversation

ulentini
Copy link
Contributor

@ulentini ulentini commented Aug 3, 2017

popTo() method used to fail in case there were a Scene in the stack of the same kind of the current one.

How to reproduce it
Let's assume we have a navigation stack with the following Scenes:
[A, B, C, C] (being A the root Scene, C the current Scene).
Calling popTo('A') or popTo('B') would fail, because of nextScene !== currentScene within the while condition. Removing that condition solved the problem.

popTo method used to fail in case there were a Scene in the stack of the same kind of the current one.
@aksonov aksonov merged commit 71c07cc into aksonov:master Aug 4, 2017
@afilp
Copy link

afilp commented Apr 23, 2019

@ulentini I have the following situation:

[A, B, B, B, C, D]

"B" is actually may "app controller" which does different things based on different props.

I want to pop to the 1st "B" state.

How can I use the popTo for this?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants