Skip to content

[LiveComponent] Update doc for component initialization#3346

Open
MrYamous wants to merge 1 commit intosymfony:2.xfrom
MrYamous:2937
Open

[LiveComponent] Update doc for component initialization#3346
MrYamous wants to merge 1 commit intosymfony:2.xfrom
MrYamous:2937

Conversation

@MrYamous
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Deprecations? no
Documentation? yes
Issues Fix #2937
License MIT

Update LiveComponent documentation to address #2937

@carsonbot carsonbot added Documentation Improvements or additions to documentation LiveComponent Status: Needs Review Needs to be reviewed labels Feb 18, 2026
Comment on lines +530 to +531
If you have a ``mount`` method declared in your component, it's required to
manually hydrate the prop::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While written like this, I'd understood that if you have mount property then you need to set all properties manually, which is not the case - if you don't list them in mount, they are mounted automatically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your point, i'll rewrite to be more accurate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation LiveComponent Status: Needs Review Needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initializing a component with a "Post"

3 participants

Comments