- π¨π¦Canada Charlie ChX Negyesi πCanada
I think allowing this when twig_capture is available would be a simple solution. That's what it's for.
Also note "As rendering a render array multiple times has negative impact on performance," is not the full extent of the problem, once again https://www.drupal.org/project/twig_capture β lists some actual bugs you can hit besides performance which the render cache might or might not mitigate -- but the bugs are real.