Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for nested liquid loops #436

Open
darryn opened this issue Jul 1, 2021 · 1 comment
Open

Add check for nested liquid loops #436

darryn opened this issue Jul 1, 2021 · 1 comment
Labels
area:theme-check enhancement New feature or request

Comments

@darryn
Copy link

darryn commented Jul 1, 2021

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.

@macournoyer
Copy link
Contributor

Oh this is good Darryn! Thanks for the suggestion.

@lukeh-shopify lukeh-shopify transferred this issue from Shopify/theme-check Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:theme-check enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants