Optional vlsuite layout regions are rendered twice

Created on 11 January 2024, 11 months ago
Updated 1 February 2024, 11 months ago

Problem/Motivation

Currently, the optional regions of the layouts from the vlsuite_layout module are being rendered twice in their twig templates: one to check the layout has content, another one to render it.

This may produce unexpected bugs as duplicated form submissions (this problem has happened in projects using webform). Also, content should be rendered once as is only printed once. Consequently, it improves the performance as fewer renders are done.

Steps to reproduce

Use any layout from vlsuite layout module.

Proposed resolution

Instead of rendering twice, store the rendered content in a variable and use it for both cases.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇪🇸Spain omarlopesino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024