# Conflicts:
#	quartz/README.md
This commit is contained in:
Vitor Pamplona
2026-04-30 17:26:28 -04:00
3 changed files with 23 additions and 32 deletions
+3 -1
View File
@@ -83,6 +83,8 @@ Notice that the `notes` flow is ready for the UI and automatically subscribes
and unsubscribes to any group of relays and filters the user wants. Similarly,
the `send` function updates both the local db and the relay.
`NostrClient` connects on-demand: the first `subscribe(...)` or `publish(...)` to a relay triggers the socket. There's no need to call `client.connect()` at startup — it's only useful for resuming after a prior `disconnect()`.
## Building a reactive feed UI
A feed screen reads from the view model's feed flow, which only updates when
@@ -202,4 +204,4 @@ private fun NoteRow(handle: MutableStateFlow<TextNoteEvent>) {
```
Notice how each how also subscribe for changes. This is important to receive
updates from replaceable and addressable events.
updates from replaceable and addressable events.