Persist component between non-grouped routes?
Hey,
My understanding is that you can persist components between routes by putting them into a group and then putting the components you want them to share in the layout of the group.
But what if you have two routes which are already in different groups? Here's an example from a mobile site that we're working on:
Navbar group
- Feed page
- Search page
All of these contain the bottom navbar, which we'd like to persist since it animates as you switch between the tabs
Breadcrumb group
- Feed page
- Post page
All of these contain the top breadcrumb bar, which we'd like to persist since it animates when breadcrumbs are added / removed
I'm sure we could find workarounds for these specific cases, but before we start digging into the weeds here, I was wondering if there is a general solution?
My understanding is that you can persist components between routes by putting them into a group and then putting the components you want them to share in the layout of the group.
But what if you have two routes which are already in different groups? Here's an example from a mobile site that we're working on:
Navbar group
- Feed page
- Search page
All of these contain the bottom navbar, which we'd like to persist since it animates as you switch between the tabs
Breadcrumb group
- Feed page
- Post page
All of these contain the top breadcrumb bar, which we'd like to persist since it animates when breadcrumbs are added / removed
I'm sure we could find workarounds for these specific cases, but before we start digging into the weeds here, I was wondering if there is a general solution?