SSR and hydration support for @tanstack/angular-db
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- angular, typescript
Línea de trabajo
Start with the core DbClient dehydration/hydration payload and observer contract from #1564, then trace injectLiveQuery and Angular DI through an SSR request and browser hydration path. Add a real Angular SSR/hydration integration or E2E test covering independent requests and a post-hydration live update; done means matching initial rows and order without duplicates or hydration errors, plus documented setup and unsupported query forms.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Follow-up to #1623 (Phase 6). #1564 added core DbClient, collection descriptors, and dehydration/hydration, while Angular still needs its own client/SSR integration.
Goal
Make injectLiveQuery work during Angular server rendering with a request-scoped DbClient, and hydrate the result into the browser client before components first read it. Keep Angular DI and signals as the public integration model.
Acceptance criteria
- Provide an Angular DI provider/token (or equivalent idiomatic API) for
DbClient. A server request gets a fresh client; the browser keeps a stable client. Existing direct-collection queries continue to work. injectLiveQuerycan resolve collection descriptors through that client and render preloaded collection or live-query results on the server.dbClient.dehydrate()supplies the state to transfer.- Transfer and hydrate the state before the first browser query read (using Angular
TransferStateor an equivalent mechanism). Initial rows and order match server HTML; normal sync then takes over without duplicates or hydration errors. - Add an integration or E2E test through a real Angular SSR/hydration path. Cover independent requests and a live update after hydration.
- Document the DI/server setup and any unsupported query forms.
Reuse the core SSR payload and observer contract; avoid a separate Angular-only state format.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.9k
- Forks
- 268
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 178
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TanStack/db
-
Persisted on-demand Electric collection enters error after a committed transaction waits across subset hydrationPosiblemente ocupada @alec-watts la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
TanStack/db#2036 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
SQLite persistence silently serializes Temporal values as {}, breaking hydration and subset queriesPosiblemente ocupada @KyleAMathews la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
useLiveInfiniteQuery commits an empty first render over a synchronously loaded collection (useLiveQuery doesn't)Posiblemente ocupada @KyleAMathews la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
TanStack/db#1972 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/db
Issues similares
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 85/100
capricorn86/happy-dom#2474 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
JSerwatka/letterboxd-tweaks#81 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
siyuan-note/siyuan#20165 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
polkadot-js/phishing#5716 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
juice-shop/juice-shop#3662 ·
Los mantenedores suelen responder en 1 día