Skip to content

Commit d0c9c3d

Browse files
committed
docs: split firestore and realtime db steps for clarity
1 parent 0fd7524 commit d0c9c3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ A minimal, yet powerful library that puts realtime Firebase data into Svelte sto
1313
1414
<p>Howdy, {user.uid}</p>
1515
16-
<!-- 3. 📜 Get a Firestore document owned by a user -->
16+
<!-- 3 (a). 📜 Get a Firestore document owned by a user -->
1717
<Doc ref={`posts/${user.uid}`} let:data={post} let:ref={postRef}>
1818
1919
<h2>{post.title}</h2>
2020
21-
<!-- 4. 💬 Get all the comments in its subcollection -->
21+
<!-- 4 (a). 💬 Get all the comments in its subcollection -->
2222
<Collection ref={postRef.path + '/comments'} let:data={comments}>
2323
{#each comments as comment}
2424
2525
{/each}
2626
27-
<!-- 3. 📜 Get a Realtime Database node owned by a user -->
27+
<!-- 3 (b). 📜 Get a Realtime Database node owned by a user -->
2828
<Node path={`posts/${user.uid}`} let:data={post} let:ref={postRef}>
2929
3030
<h2>{post.title}</h2>
3131
32-
<!-- 4. 💬 Get all the comments in its subnodes -->
32+
<!-- 4 (b). 💬 Get all the comments in its subnodes -->
3333
<NodeList path={postRef.path + '/comments'} let:data={comments}>
3434
{#each comments as comment}
3535

0 commit comments

Comments
 (0)