Okay, I have to briefly setup the scene, to help with the question.
We have a gargantuan old blue holding the mage (me) hostage in a cave. The party is level 7. The dragon is evil, and the dragons eggs are within reach of the mage through hero points to escape.
Worst case, is the party mage pulling an us for them deal.
But I need to make sure its legal in design. I wanted to cast the spell Mirror Hideaway. https://www.d20pfsrd.com/magic/all-spells/m/mirror-hideaway
And hold the eggs hostage in the extradimensional space. Since I have the means to send the mirror elsewhere that would destroy the eggs.
I wanted to ask if dropping the mirror hideaway into a bag of holding would eject the dragon and eggs into the bag? The spell would enter stasis, or if i could destroy the bag as the mirror entered and trap them?
The particular wording is why im wondering. "If placed inside such a space, they cease to function until removed from the extradimensional space. For example, if a bag of holding is brought into a rope trick, the contents of the bag of holding become inaccessible until the bag of holding is taken outside the rope trick."
The spell ceases to function, which would mean that it goes out is what im guessing, but wanted to ask here. Even if the spell goes, the dragon leaving the mirror would rupture it, killing the dragon in the bag of holding.