T024warning

Directive written before p-for

A directive is written before p-for, but p-for is evaluated first.

p-for always has the highest precedence, so another directive written before it still runs once per item. The order in the source suggests otherwise.

Write p-for before the element's other directives and dynamic attributes.

$ piko explain T024

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeDirectivePrecedence in Piko's source to see where it is reported.