Skip to content

Limits and what is not available

Limit Value
Actions per event (on.press, on.commit) 8
Entries in lifecycle.startup 8
State nesting depth 12 levels
State path length 512 characters
Text value in setState or a condition 10,000 characters
setState and addRow record value 4 levels, 32 keys per level, 64 values
Rows in a list in document state, and in a local list after addRow 500
One row addRow adds, once its reads are resolved 16,384 JSON characters
goToPage page key 1–200 characters
Steps pages 1–50 distinct page keys
Object alias, field and input names 64 characters
Declared objects per document 32
Declared host actions per document 32
Fields per level of a declaration (and inputs per capability) 64
object field nesting 6 levels
enum values 64
Host type key 128 characters
Field pattern 256 characters
confirmation (create, update, delete) 240 characters, one line
Host error code 128 characters
Host error message and each field error 1,000 characters
Field catalog entries 512, labels up to 120 characters
$format count wording (one, other) 80 characters each
$calc operands 16 per calculation (round takes 1; difference, quotient and daysBetween take 2)
$calc nesting 3 levels, counting the outermost
$calc round places 0–6
$expr operands 16 per expression (round, not and isEmpty take 1; difference, quotient, daysBetween and the six compares take 2; if takes 3; sum, product, min, max, and and or take 2–16)
$expr nesting 6 levels, counting the outermost
$expr nodes 32 per tree

These are refused with a message rather than dropped:

  • List rules — repeat on anything but a Stack or Grid, a repeat inside another repeated template, $item/$index outside a template, $index in conditions or action params, a row read as a whole action param, and $bindItem over a collection, on a row’s key, or over a field another read lies inside; a collection’s update or delete without row, and row anywhere else; addRow or removeRow on a list no repeat renders, a list whose repeats disagree on its key, or a declared object’s rows, and an addRow that sets the key; a setState inside a repeated list, or of the list itself with anything but a $state copy; json-render’s pushState and removeState. See lists.
  • Placements the designer cannot build — children on a component that takes none (a Text or Heading holding a Button), a Page anywhere but directly in the root PageStack, and a PageStack anywhere but the root.
  • Watchers and slots — an element’s watch and slots. To act when a person changes a field, use an Input’s commit event.
  • Array field kinds — a field is never itself a list; a list of records is a cardinality: "many" collection.
  • Richer conditions — $and, an $or inside a group or a list, an $or with no group or more than 8, an empty group, not with any value but true, $computed, a bare true/false, and more than one comparison per part.
  • Display formatting outside bound text — $format anywhere but Text and Heading content and Value value, in action params or conditions, a format outside number, currency, percent, date and count, a missing or stray option, a literal value (only a $state read, $item in a template, or a $calc or number $expr is formatted), a $format inside another, and a date format around a $calc or $expr. See $format.
  • Calculations outside display props — $calc anywhere $format is not accepted, in action params and object inputs, in visible, $cond, requiredWhen or any other condition; a function outside sum, product, difference, quotient, round, min, max and daysBetween; the wrong number of operands; a stray key; a list and field on any function but sum, min and max; an operand that is not a number, one read or a nested $calc; anything but reads in daysBetween; and nesting deeper than 3. See $calc.
  • $expr outside its slots — $expr in setState, object inputs or host-action params; a boolean $expr in bound text; a number $expr as visible, $cond or requiredWhen; now, an unknown function, nesting deeper than 6, more than 32 nodes, mixed $expr and $state condition parts, and a type mismatch (if’s then and else, or and of a number). $expr is a JSON AST only: no text syntax, no JS, no concat or templates, no host-declared functions.
  • Other events and actions — any event but Button press and Input commit, any action but the nine Mica verbs and a declared host action (see actions), and binding-level confirm. A host action named validate is refused: that name is the ninth Mica verb.
  • Local validate scope — validate checks only ruled controls visible on the active page. Other pages and controls hidden by visible keep their error slots; with none visible the action succeeds. Import still refuses validate when no control in the document carries valid rules.
  • Unknown anything — an unknown top-level, ui, meta, element, declaration or prop key (including fixtures and graph, which belong in the {stem}.mica-design.json sidecar, never the envelope); an unknown component type; a pack or pack version this build does not have; an expression a prop does not take, such as json-render’s $template, or $state on a label, which is named in the message.
  • Decisions that count, and templates, in a document: $calc and a number $expr show a total but are never sent to the host; a boolean $expr may hide or disable a control. Scores that count, pass marks and joined text such as “3 of 4” are the host’s. Functions beyond $expr’s set (an average, now, concat) and host-declared functions (json-render’s $computed).
  • Commit on typing: commit fires when a person finishes an edit, never per keystroke or after a pause, and only on a form control.
  • Reordering or moving a local list’s rows, undo or confirmation for removeRow, and a Button that writes a field of its own row.
  • For collection rows: per-row pending or error state, optimistic updates, automatic refetch after a write, per-field writability, and bulk writes.
  • Sorting, text search and paging inside the document: a collection is filtered and sorted by the host through its fetch inputs. See filter and sort a list.
  • Authentication, persistence and URL routing — the host owns them.
  • AI-assisted editing, responsive breakpoint authoring and free x/y placement.
  • Converting a document between packs, third-party packs, and per-pack web fonts. Both packs use system font stacks and load nothing from the network.
  • A document naming or carrying a theme, or raw CSS in a theme. The host chooses a theme, which names font families but never loads them. (Themes are edited in the designer’s Theme panel; see make a theme in the designer.)
  • An editor-embedding API: mica/editor exports the designer’s App but takes no document or change callbacks yet.

The project README’s roadmap describes where these are headed. Items there are direction, not commitments, and none of them is available until it appears in these pages.