Description
When viewing a composition that includes rendered values, the collapsed version is generated by calling the renderer function.
Even in view mode, where values are not changed, when expanding and collapsing the function calls are run again, generating unnecessary calls to the function_call API
This should be avoided
Steps to reproduce:
- Go to https://www.wikifunctions.org/wiki/Z23245
- See how the rendered values are queued and generated one after the other
- Expand the first level: observe how the same values are re-rendered
- Collapse again: observe how the same values are re-rendered
Observed behavior:
Expected behavior (Acceptance criteria):
- Unnecessary calls to wikilambda_function_call should be avoided if possible
Devices and Design (URLs or screenshots, if applicable):
- Desktop: ...
- Small screens/mobile: ...
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist
