You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
I am using StackNavigator and tried to use navigation addons to know when component is rendering on goBack() but when I wrap my StackNavigator with the enhance method my component gets stuck in componentWillMount loop. componentWillMount just gets called over and over again and nothing happens. Android 6.0.1 and RN 0.44
The text was updated successfully, but these errors were encountered:
Is it componentWillReceiveProps that is stuck in a loop? My guess is because you're updating this.props.navigation in the process, it triggers componentWillReceiveProps again. Probably should do a check inside componentWillReceiveProps to look for a specific property being different than before (ie NOT nextProps.navigation) to then do the update. In my case, this worked:
I'm getting this issue literally any time an error occurs in my emulator. I don't even have to be using any of the addon features - if I wrap enhance around the AppNavigator then this will always happen.
I'm using React Native 0.48.3 (although this issue was happening < 0.40), so this definitely seems like a react-navigation-addons error.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using StackNavigator and tried to use navigation addons to know when component is rendering on
goBack()
but when I wrap my StackNavigator with the enhance method my component gets stuck incomponentWillMount
loop.componentWillMount
just gets called over and over again and nothing happens. Android 6.0.1 and RN 0.44The text was updated successfully, but these errors were encountered: