Skip to content

Commit

Permalink
minor #1067 Fix wrong reference to mount method (Jasperator)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Fix wrong reference to mount method

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| License       | MIT

There was a reference to a not existing mount method in the ux live component documentation. This should be a link that leads to the mount method in the ux twig documentation.

Commits
-------

ac6abbe Fix wrong reference to mount method
  • Loading branch information
weaverryan committed Aug 24, 2023
2 parents 1df584a + ac6abbe commit ad476bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ changes, the child will make a second Ajax request to re-render itself.
To work, the name of the prop that's passed when rendering the ``TodoFooter``
component must match the property name that has the ``updateFromParent`` - e.g.
``{{ component('TodoFooter', { count: todos|length }) }}``. If you pass in a
different name and set the ``count`` property via a ref:``mount()`` method, the
different name and set the ``count`` property via a `mount() <https://symfony.com/bundles/ux-twig-component/current/index.html#the-mount-method>`_ method, the
child component will not re-render correctly.

Child components keep their modifiable LiveProp values
Expand Down

0 comments on commit ad476bb

Please sign in to comment.