ericvicenti / navigation-rfc

Better Navigation in React Native
441 stars 44 forks source link

Visual Update not occurring despite everything happening correctly #76

Open sscaff1 opened 8 years ago

sscaff1 commented 8 years ago

This conversation was started here https://github.com/jlyman/RN-NavigationExperimental-Redux-Example/issues/20.

I thought it was worth mentioning in this repo. Basically I'm reseting my navigation state every time I change to one of my 5 tabs. When the app starts, I can navigate to 1 to 2 tabs before my app stops giving a visual update that the route has in fact changed. What's interesting; however, is that both my render function and renderScene function in my navigator are both running with the correct navigation state. I can't really figure out what's going on. In addition, I'm using redux persist and after I refresh the app manually the app takes me to the scene that should have been rendered prior to refreshing. In addition, some of the tabs have promises that run when the scene is rendered. Those promises are bring resolved in the background even though I see no visual update. I'm very confused about why this isn't working. I have my code posted on the link above. If I change my tab navigation to a jumpTo or push then my app works correctly. It just seems to be related to the reset. Any help is appreciate.