react-native-router icon indicating copy to clipboard operation
react-native-router copied to clipboard

Reuse routes wherever it's possible (push/pop issues)

Open pukhalski opened this issue 10 years ago • 2 comments

Considering my findings and the issue opened here https://github.com/facebook/react-native/issues/1731, please, make sure you're reusing routes with jump* methods instead of pushing/popping them.

https://twitter.com/pukhalski/status/648107213253398528

pukhalski avatar Sep 28 '15 11:09 pukhalski

Can you please provide more information?

ghost avatar Sep 29 '15 19:09 ghost

All the rendered elements stay in the memory even after removing the route using pop/push methods. As a result your memory heap grows instantly while navigating through views. If you want to see it on your own just run app profiling in XCode.

pukhalski avatar Oct 01 '15 21:10 pukhalski