theme-check
theme-check copied to clipboard
Add check for nested liquid loops
There are instances where there are multiple liquid loops nested inside each other. These can clog the TTR.
Here is a bad example...
{% for product in collection.products %}
{% for tag in product.tags %}
{% for variant in product.variants %}
{% for collection in product.collections %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
Semi-related to the nested snippets logic.
Oh this is good Darryn! Thanks for the suggestion.