Can an app block in our application be used only once?

sebastiandev
Shopify Partner
54 1 20

In our application, we use App blocks. Is it possible for our block to be used only once?

 

I found the "limit" parameter in the theme schema, but unfortunately, it doesn't work for App blocks:

 

"Cause: [blocks/test.liquid] Invalid tag 'schema': unknown key 'limit'."

Reply 1 (1)

DiiLii
Shopify Partner
2 0 1

Same error Invalid tag 'schema': unknown key 'limit'."

{% schema %}
  {
    "name": "section_name",
    "limit": 1,
    "target": "section",
    "settings": [],
    "enabled_on":{
      "templates": ["product"]
    }
  }
{% endschema %}
did you solve this ? thanks