Skip to content

Conversation

@timfjord
Copy link
Contributor

Similar to phoenixframework/phoenix#6530, this PR allows assign/2 in Phoenix.Component to accept a single-arity function as the second argument. And the return of the callback will be merged into the current assigns.

@SteffenDE SteffenDE merged commit 3df1e6c into phoenixframework:main Nov 14, 2025
8 checks passed
@SteffenDE
Copy link
Collaborator

🙌🏻

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.

2 participants