28 lines
761 B
Markdown
28 lines
761 B
Markdown
---
|
|
type: Relationship
|
|
layer: wiki
|
|
tags: [stack, dashdescomplicar, relacionamento, integra]
|
|
title: "Dashboard-Engine → integra-com → CSR-Integration"
|
|
---
|
|
|
|
# Dashboard-Engine integra CSR-Integration
|
|
|
|
Dashboard-Engine integra a camada CSR para fetch de dados, caching e reconnection logic.
|
|
|
|
## Fluxo
|
|
|
|
1. Dashboard-Engine renderiza Layout
|
|
2. Painéis (componentes filhos) usam hooks/Context de CSR-Integration
|
|
3. CSR-Integration faz requisições HTTP para API Express
|
|
4. Respostas são cacheadas e compartilhadas entre painéis
|
|
|
|
## Tipo de relação
|
|
|
|
`integra-com` — Dashboard-Engine depende funcionalmente de CSR-Integration.
|
|
|
|
## Touchpoints
|
|
|
|
- `src/lib/DataContext.tsx` — Context Provider
|
|
- `src/App.tsx` — wrapper CSR
|
|
- Painéis — consumem Context
|