Impossible to have nested routes and layouts that do not unmount? #23395
Labels
stale?
Issue that may be closed soon due to the original author not responding any more.
type: question or discussion
Issue discussing or asking a question about Gatsby
I've read all of the below resources and more and from I can tell, Gatsby is incapable of handling nested layouts that do not unmount. You can make a single global layout that doesn't unmount by using the
wrapRootElement
method. You can make many nested layouts normally like any React structure. But you cannot have a nested layout component that doesn't unmount on route change. Is that correct?I have a main left bar menu and then some sub section menus in the main content area. User navigates from
/app/parent-menu-1/child-menu-1
to/app/parent-menu-1/child-menu-2
. It is now impossible to do that transition without unmounting child menu layout. Correct?Reach cannot do React Router nested routes? Any other options for animations between nested URLs?
https://www.gatsbyjs.org/tutorial/part-three/
https://www.gatsbyjs.org/docs/routing/
#6127
The text was updated successfully, but these errors were encountered: