feat: show stream name in breadcrumbs

This commit is contained in:
talksik
2026-03-18 17:42:37 -07:00
parent 38ff4c47c9
commit b54aaa3f08
2 changed files with 61 additions and 25 deletions
+10
View File
@@ -3,6 +3,7 @@ import {
doc,
onSnapshot,
addDoc,
getDoc,
updateDoc,
query,
orderBy,
@@ -72,6 +73,15 @@ export function subscribeToParticle(
);
}
export async function getParticle(docPath: string): Promise<Particle | null> {
const doc = await getDoc(typedDoc(docPath));
if (!doc.exists()) {
return null;
}
return doc.data();
}
export function subscribeToParticleChildren(
collectionPath: string,
onData: (children: Particle[]) => void,