aboutsummaryrefslogtreecommitdiffstats
path: root/dev-docs/docs/codebase/frames.mdx
blob: 67c84b79213467cb566db76a21f211aed0dfe735 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Frames

## Ordering

Frames should be ordered where frame children come first, followed by the frame element itself:

```
[
  other_element,
  frame1_child1,
  frame1_child2,
  frame1,
  other_element,
  frame2_child1,
  frame2_child2,
  frame2,
  other_element,
  ...
]
```

If not ordered correctly, the editor will still function, but the elements may not be rendered and clipped correctly. Further, the renderer relies on this ordering for performance optimizations.