question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changed behavior of scenes into stack (always opens the first one after switching)

See original GitHub issue

Version

  • react-native-router-flux v4.0.1
  • react v16.5
  • react-native v0.57

Expected behaviour

I’d like to save behaviour from previous versions of scenes into stacks.

We have stacks with scenes (tab stacks, actually). We navigate in one stack between scenes, get scene №3 (for example) and tap on tab for entering another stack.

When we’ll open previous stack, we get scene №3 (like at the moment we left this stack) and continue to use the app

Actual behaviour

When we’ll open previous stack, we’ll lose our state and see a pop to first scene in stack.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Komalovcommented, Dec 12, 2018

@Q8hma Everything is cool, there was a little misundertanding. If you want to preserve the behavior which backToInitial did erlier, just remove it from stack property. This is the default behaviour for now. If your goal is to reset scene and pop initial every time you touch tabbar, add backToInitial.

So just remove backToInitial was fine for me

1reaction
mikaelrosquistcommented, Nov 8, 2018

What’s the status on this? Is there a simple workaround in the meantime? Really appreciate the work you guys put in. I’m using v4.0.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monogame, Nez: Switching scenes, opening menu
The basic principle is that there is a stack of objects(scenes in this case), and each time a new scene begins you add...
Read more >
Tasks and the back stack | Android Developers
When the current activity starts another, the new activity is pushed on the top of the stack and takes focus.
Read more >
Auto Layout Guide: Working with Constraints in Interface Builder
For all three options, start by dragging your views and controls from the Object library onto the scene. Resize and position them as...
Read more >
Stack Navigator | React Navigation
One thing to keep in mind is that while @react-navigation/stack is extremely ... React Navigation will change it to screen automatically so that...
Read more >
Trimming clips in Adobe Premiere Pro
After you mark In and Out points, you can always change your mind before you edit the clip into the sequence. Drag the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found