Change to the phases

Created on 14 February 2024, 9 months ago

Problem/Motivation

Currently we have phases: init, build, pre-render, ... and the language/theme/user switching occurs after build.

The order of processing isn't quite right in certain cases. Most of the work occurs in build with the wrong (not yet switched) settings.

Proposed resolution

Instead I propose: init, prepare, build, ... and the language/theme/user switching occurs before build.

In 1.x we add prepare, and deprecate pre-render. We move all calls to setTo() and setTheme() to the prepare phase and generate a deprecation if they are called later.

In 2.x we move the switching to before build - this is a non-BC change.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom adamps

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