Page Include in popup blank on second load (conditionally)?

Sliding panels have similar issues. I need the page include in its original state when it loads, able to receive url parameters and start off fresh. Trying to re-render / toggle it causes the same problem to happen. I’ve been experimenting with unrendering and re-rendering the include and can’t get that working either. It seems like just randomly trying to use the same page include twice causes this issue of the page include loading a blank page every other render.