Skip to content

Commit

Permalink
minor #2043 [Doc] fix some comments in component defer part (Nek-)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

[Doc] fix some comments in component defer part

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

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

Commits
-------

3c0e1ca [Doc] fix some comments in component defer part
  • Loading branch information
javiereguiluz committed Aug 9, 2024
2 parents 9bcdd35 + 3c0e1ca commit 21595a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2311,12 +2311,12 @@ the page has loaded. To do this, add a ``loading="defer"`` attribute:

.. code-block:: html+twig

{# With the component function #}
{# With the HTML syntax #}
<twig:SomeHeavyComponent loading="defer" />

.. code-block:: twig
{# With the HTML syntax #}
{# With the component function #}
{{ component('SomeHeavyComponent', { loading: 'defer' }) }}
This renders an empty ``<div>`` tag, but triggers an Ajax call to render the
Expand Down

0 comments on commit 21595a7

Please sign in to comment.