Skip to content

Commit a61f520

Browse files
committed
Slight improvement
1 parent 955bc10 commit a61f520

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

packages/docs/docs/flex/props.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,8 @@ Whether the height of the flex component should be animated when the items are r
268268

269269
:::info
270270

271-
`'layout'` mode is more performant than `'worklet'` but it doesn't affect surrounding views during the animation. If you have content rendered next to the sortable grid, it will update its position immediately instead of animating.
272-
273-
:::
274-
275-
:::warning
276-
277-
This may sometimes cause **performance issues** as it requires layout recalculations.
271+
- `'layout'` mode is more performant than `'worklet'` but it doesn't affect surrounding views during the animation (surrounding content updates position immediately).
272+
- `'worklet'` mode affects surrounding views but is less performant as it requires layout recalculations on every frame.
278273

279274
:::
280275

packages/docs/docs/grid/props.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,8 @@ Whether and how to animate container dimensions changes.
135135

136136
:::info
137137

138-
`'layout'` mode is more performant than `'worklet'` but it doesn't affect surrounding views during the animation. If you have content rendered next to the sortable grid, it will update its position immediately instead of animating.
139-
140-
:::
141-
142-
:::warning
143-
144-
This may sometimes cause **performance issues** as it requires layout recalculations.
138+
- `'layout'` mode is more performant than `'worklet'` but it doesn't affect surrounding views during the animation (surrounding content updates position immediately).
139+
- `'worklet'` mode affects surrounding views but is less performant as it requires layout recalculations on every frame.
145140

146141
:::
147142

0 commit comments

Comments
 (0)