view data fixes
This commit is contained in:
@@ -28,16 +28,29 @@ API Transport DTO
|
||||
↓
|
||||
ViewData Builder (lib/builders/view-data/)
|
||||
↓
|
||||
ViewData
|
||||
ViewData (Plain JSON)
|
||||
↓
|
||||
Template
|
||||
```
|
||||
|
||||
### Client Components
|
||||
### Client Components (Hydration / Interactive)
|
||||
```text
|
||||
Client Wrapper / Component
|
||||
↓
|
||||
ViewData (from Props)
|
||||
↓
|
||||
ViewModel (lib/view-models/) -- [new ViewModel(viewData)]
|
||||
↓
|
||||
Display Objects (lib/display-objects/) -- [formatting]
|
||||
↓
|
||||
Interactive UI State
|
||||
```
|
||||
|
||||
### Client Components (Direct Fetch)
|
||||
```text
|
||||
Client Component
|
||||
↓
|
||||
API client (useEffect)
|
||||
API client (useEffect / useQuery)
|
||||
↓
|
||||
API Transport DTO
|
||||
↓
|
||||
|
||||
Reference in New Issue
Block a user