We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec3eb3 commit 647f5f5Copy full SHA for 647f5f5
src/TwigComponent/doc/index.rst
@@ -382,7 +382,7 @@ use the full path of the template where the macro is defined:
382
<twig:Alert>
383
{# ❌ this won't work #}
384
{% from _self import message_formatter %}
385
-
+
386
{# ✅ this works as expected #}
387
{% from 'path/of/this/template.html.twig' import message_formatter %}
388
@@ -1553,6 +1553,12 @@ are called additional times, the cached value is used.
1553
Computed methods only work for component methods with no required
1554
arguments.
1555
1556
+.. warning::
1557
1558
+ Ensure to not use the ``ExposeInTemplate`` attribute on a computed method,
1559
+ otherwise the method will be called twice instead of only once, leading to
1560
+ unnecessary overhead and potential performance issues.
1561
1562
Events
1563
------
1564
0 commit comments