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.

[Regression][Navigator] renderScene is called with every route in the routeStack after navigator.push

See original GitHub issue

@ericvicenti As per our discussion on irc, I think this is a bug. Not sure though.

Also to reproduce:

Just console.log in renderScene here: https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/Navigator/NavigatorExample.js#L113-L114
[13:50] <Chirag> run the app. goto Navigator and click float in from right. "float in for right" will call render scene with first scene and second scene

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
dritan-xcommented, Sep 16, 2016

I’m experiencing this problem too. I just pushed the details route after user clicked on an item in the list view and render() gets called multiple times. Performance is really taking a toll.

‘RENDER SCENE’, { name: ‘List’, index: 1 } ‘RENDER SCENE’, { name: ‘Details’, index: 2 }

1reaction
ranjitpanditcommented, Mar 11, 2016

Hi, I’m running into this issue with v0.21. Is it fixed on a specific version and if so which one would it be?

Read more comments on GitHub >

github_iconTop Results From Across the Web

react navigation, get name of nested route - Stack Overflow
When I try and access from props the current route in my header, like below, the title is undefined , how can I...
Read more >
React Native Navigator — Navigating Like A Pro in React Native
is then available in the renderScene method as a property of the route. Let's look at an example: Set up your Navigator like...
Read more >
Writing widget tests for navigation events - iiro.dev
Find out how to test push and pop events by using the WidgetTester APIs and mockito. Learn how to tap things. Be bummed...
Read more >
Navigator 2.0: Navigation & Routing In Flutter
A page creates a route that gets placed on the route stack. Each page takes a key so that when Navigator uses this...
Read more >
Navigate to a new screen and back - Flutter documentation
Terminology: In Flutter, screens and pages are called routes. The remainder of this recipe refers ... Navigate to the second route using Navigator.push()....
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