Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

Commit 87580f8

Browse files
committed
examples,hn: fix section-list for if-view changes
Since views are destroyed on replace, it's no longer safe to refer to a static view from a dynamic one.
1 parent c2a1a6b commit 87580f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hn.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
(async (@top-stories . := . (get-top-stories 50)))
196196
(async (@new-stories . := . (get-new-stories 50)))
197197

198-
(define section-list
198+
(define (section-list)
199199
(hpanel
200200
#:min-size '(150 #f)
201201
#:stretch '(#f #t)
@@ -280,7 +280,7 @@
280280
(story-view @mode @story)
281281
(hpanel
282282
#:alignment '(left top)
283-
section-list
283+
(section-list)
284284
(story-list
285285
@mode
286286
(obs-combine

0 commit comments

Comments
 (0)