New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drawer navigation "caches" my screens #8035
Comments
This is expected behaviour |
@satya164 how to fix this |
@TomaIvanovTomov I fixed it by adding this to DrawerNavigatorConfig unmountInactiveRoutes:true, Now drawer screens refreshes everytime |
How and where did you add the config? |
add this line to drawernavigatorconfig unmountInactiveRoutes:true |
If you want it on only specific screens, you can remove it from
My Versions:
|
Following the approach set by anandchakru,
|
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
I have this
index.js
file with drawer navigator:The
CustomDrawer
is this one:Now when I login it I am redirected to
QuizIndex
there I am rendering 3 categories:And the
RowItem
is this one:When I click on the 3th category there are 2 sub categories. But if I go back no matter device button or through navigation and click on some of the other categories the same 2 sub categories are shown. It seems like cache for me. But I am pretty new in
react-native
so I will be thankful for every advice.P.S.
If use
createStackNavigator
everything works fine. E.g. this "cache" behavior doesn't occur.The text was updated successfully, but these errors were encountered: