Two-Dimensional Limits
under review
J
John
In some cases, we have limits where a user is able to create a certain number of elements per parent element. As a simple example, they may be able to add 5 images to each page.
We don't want to set a global limit of 5*[the number of pages they can create] because we think the user experience wouldn't be great. We also don't want to create one limit per "page" in Limiter because it could get cumbersome to manage and we'd have to track which "page" is assigned to which limit.
Instead, we'd prefer to be able to create a Limit that separately tracks each "page's image" count. For example, we could send an ID along with the increment/decrement/set and only that specific "page's" usage would be updated.
S
Shem
under review