Another odd question, what happens if ...

  • 1
  • Question
  • Updated 4 years ago
Let's say I have a page include that's been loaded. What happens if I conditionally unrender and then render it again. Would it load the page again or would it be in "memory".
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
That's a cool question.  Worth a quick investigation. 

My findings are that when you re-render the page include it is reloaded.  I created a queue page that conditionally renders the include based on some arbitrary factor.  SO you select an item in the queue (which loads the include) and then turn off the rendering of the include - and turn it back on.  The include reloads without the context of the queue item you selected. 

I suspect this is not what you were expecting.  But that is the way its coded now. 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
This isn't what I was hoping for but I didn't expect to work any other way.