Skip to content

Commit d2a97ca

Browse files
committed
README: add entities loop diagram
1 parent cab3b77 commit d2a97ca

3 files changed

Lines changed: 11 additions & 103 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ A page that needs no server-prepared data skips the split entirely: the sign-in
259259
`page.tsx` is a plain client component — there the page slot is occupied
260260
directly by the user interface unit, with no template or template action.
261261

262+
![Next.js entities loop](docs/ca-nextjs-entities-loop.svg)
263+
264+
<details>
265+
<summary>mermaid</summary>
266+
262267
```mermaid
263268
graph TD
264269
@@ -267,7 +272,7 @@ T["Template (server component)"]
267272
A["Template action"]
268273
CORE["Server core"]
269274
CU["Client units (client components)"]
270-
GW["Gateway (Server Actions)"]
275+
GW["Gateway (Server Action)"]
271276
272277
R -- "executes" --> T
273278
T -- "awaits" --> A
@@ -278,6 +283,8 @@ GW -- "drives, via BFF controller" --> CORE
278283
GW -- "revalidatePath() restarts the loop" --> R
279284
```
280285

286+
</details>
287+
281288
## Gateway/Driver
282289

283290
On the main diagram, the client–server integration boundary contains a single

docs/ca-nextjs-entities-loop.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/diagram.md

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)