docs: fix order of render phases in lifecycle documentation

(cherry picked from commit b6b6fae483)
This commit is contained in:
HyperLife1119 2025-11-22 14:56:44 +08:00 committed by kirjs
parent cdfc782770
commit 2ebe685298

View file

@ -292,8 +292,8 @@ There are four phases, run in the following order:
| Phase | Description |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `earlyRead` | Use this phase to read any layout-affecting DOM properties and styles that are strictly necessary for subsequent calculation. Avoid this phase if possible, preferring the `write` and `read` phases. |
| `mixedReadWrite` | Default phase. Use for any operations need to both read and write layout-affecting properties and styles. Avoid this phase if possible, preferring the explicit `write` and `read` phases. |
| `write` | Use this phase to write layout-affecting DOM properties and styles. |
| `mixedReadWrite` | Default phase. Use for any operations need to both read and write layout-affecting properties and styles. Avoid this phase if possible, preferring the explicit `write` and `read` phases. |
| `read` | Use this phase to read any layout-affecting DOM properties. |
## Lifecycle interfaces