-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Maximum call stack exceeded when closing drawer #2542
Comments
Could you show some code from your router? Or put it in the |
@daviscabral here's some sample code from my router. Everything seems to function correctly but I see the warning whenever the drawer is closed and I return to the view that opened the drawer. <Router>
<Stack key="root">
<Scene initial key='launch' type='reset' component={LaunchImageContainer} />
<Drawer hideNavBar
key='drawer'
drawerIcon={<MenuButton />}
contentComponent={DrawerContainer} >
<Scene
title='Settings'
key='usersSettings'
component={UsersSettingsContainer} />
<Scene
title='Promotions'
key='promotions'
component={PromotionsContainer} />
</Drawer>
</Stack>
</Router> |
@bsiddiqui why the drawer parent is a |
@daviscabral the |
Sorry - my bad. |
Could you check if inside the |
@daviscabral there's a reference to |
Which actions do you trigger over there? Do you have any calls in the willMount/unMount lifecycle methods? |
Running into this as well -- started happening when I added a renderLeftButton to a nested Stack (even if I only do this: UPDATE: Changing to |
Thanks for the update @wluxion. @bsiddiqui can you confirm that this fixes your issue? <Drawer hideNavBar
key='drawer'
drawerIcon={() => <MenuButton />}
contentComponent={DrawerContainer} >
</Drawer> |
@wluxion thanks yeah passing all components (contentComponent, renderLeftButton, renderTitle, etc) as fat arrow functions fixed the issue |
Version
Tell us which versions you are using:
Issue
Whenever I close an open drawer I get this error
The text was updated successfully, but these errors were encountered: