-
Notifications
You must be signed in to change notification settings - Fork 19
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
Identify missing calls to block.shopify_attributes #455
Comments
This came up as an actually issue in one of our internal themes recently. We use these attributes to live-patch the DOM when settings like a linked image are updated. |
👍 Appears to be documented here: https://shopify.dev/docs/themes/liquid/reference/objects/block#block-shopify_attributes. Maybe we could check that as soon as |
Don't know how we can do this reliably. I'm thinking of |
All rendered blocks should to use
block.shopify_attributes
like thisThis might be tricky to identify. Some cases would be caught by checking the contents of any for loops over
section.blocks
, but there are subtleties like the{% render .. for %}
syntax.The text was updated successfully, but these errors were encountered: