Commit 5b5cbf4
authored
fix(tv): don't stamp ?ch= on load, only after the viewer tunes (#279)
The TV channel writeback effect ran for the initial auto-selected
channel, so a fresh visit to the homepage immediately rewrote the URL
to `?ch=<propNumber>`. Gate the writeback behind a ref that flips only
when the viewer actually tunes a channel. A clean load now keeps a
clean URL; a `?ch=` deep link still selects on load and is preserved.1 parent bab1e27 commit 5b5cbf4
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
191 | 196 | | |
192 | 197 | | |
| |||
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
208 | | - | |
| 213 | + | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
| |||
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| 264 | + | |
259 | 265 | | |
260 | 266 | | |
261 | 267 | | |
| |||
0 commit comments