If I understand correctly, you need to do this because the navigation library doesn't support having a single panel in two spots in its navigation stack.  Is this correct?

Can we use a data- attribute to store some state on the panel so that navigation can handle this correctly?