Commit 8ce968a
fix(channels): don't flash the empty state while a new channel resolves
WebsiteChannelHome took only `channel` from useBackendChannel and dropped
its isLoading. For a freshly created channel that hook resolves the
backend channel over the network (a resolve-or-create POST), and for that
whole window the view had no intro (it needs backendChannel), no tasks,
and — because the feed query is disabled until the id exists, and a
disabled query reports isLoading:false — believed it wasn't loading. So
ChannelFeedView fell through to `emptyState` and flashed the welcome +
suggestions screen before the feed appeared.
Fold the identity resolution into the loading flag: a channel isn't empty
until we know which channel it is. A plain reload never showed this
because the backend channels list is already cached by the time the view
mounts.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019G63f4afY9vsbKsvK654Wj1 parent c6252b2 commit 8ce968a
1 file changed
Lines changed: 18 additions & 3 deletions
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
69 | 84 | | |
70 | 85 | | |
71 | 86 | | |
| |||
0 commit comments