Repository navigation
Commit 67c6ee2
authored
docs(resources): clarify streaming resource data flow
Clarify the Streaming Resources documentation to make the data flow between the source signal and the resource explicit.
- Explain that `stream` should return a signal representing a continuously updating data source.
- Clarify that the resource consumes the signal's value and updates when the signal changes.
- Explain that `userUpdates` simulates an external source such as WebSocket or SSE.
- Update the example comment to make the direction of the data flow explicit.
- Distinguish `stream` from `loader` for continuously updating versus one-time asynchronous operations.1 parent 813e90f commit 67c6ee2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments