EVA views pollute the whole page with the view's cache contexts - should use a lazy builder

Created on 18 January 2021, over 3 years ago
Updated 30 June 2023, 12 months ago

Problem/Motivation

The cache contexts of the view shown by EVA bubbles to the whole page. This means that if the view has cache contexts that make it uncacheable (such as a 'current user' argument), the whole page becomes uncacheable.

Steps to reproduce

1. Make a view with an argument that takes the 'current user' default value
2. Show it in an EVA on a node.

The node's page then gets the debug header to show that Dynamic Page Cache considers it to be uncacheable.

Proposed resolution

Use a lazy builder to output the view.

Remaining tasks

User interface changes

API changes

Data model changes

The render structure of the EVA will change because the lazy builder can't return the top-level view element because of πŸ› Lazy builder broken (#type defaults not loaded) Needs work .

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024