Skip to content

[6.x] Remove closure value handling - #19361

Merged
brandonkelly merged 1 commit into
6.xfrom
t3code/remove-closure-value-handling
Aug 3, 2026
Merged

[6.x] Remove closure value handling#19361
brandonkelly merged 1 commit into
6.xfrom
t3code/remove-closure-value-handling

Conversation

@riasvdv

@riasvdv riasvdv commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Description

Removes EvaluatesClosures and closure-valued fluent properties from CP components and field layout builders.

The only thing that the closures really brought us was dependency injection when it was executed, but unlike Filament we don't inject anything else, or re-render on changes to the schema.

The additional complexity of accepting Closure everywhere isn't really worth it for us (in my opinion).

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

No changed components detected in this Storybook.

resources/jsopen Storybook

No changed components detected in this Storybook.

@riasvdv
riasvdv marked this pull request as ready for review August 3, 2026 09:25
@brandonkelly
brandonkelly merged commit ae87578 into 6.x Aug 3, 2026
26 checks passed
@brandonkelly
brandonkelly deleted the t3code/remove-closure-value-handling branch August 3, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants