Skip to content

Commit 26b99bd

Browse files
Show compiled JS based on query params only (#296)
* Show compiled JS based on query params only * Add changelog entry
1 parent 38576f4 commit 26b99bd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ New features:
1010

1111
Bugfixes:
1212
- Fix double `main` invocation (#295 by @JordanMartinez)
13+
- Stop loading hang when using query params to show compiled JS output (#296 by @JordanMartinez)
1314

1415
Other improvements:
1516

client/src/Try/Container.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ component = H.mkComponent
183183

184184
Right res@(Right (CompileSuccess { js, warnings })) -> do
185185
{ settings } <- H.get
186-
if settings.showJs then
186+
if settings.showJs then do
187187
H.liftEffect teardownIFrame
188+
H.modify_ _ { compiled = Just res }
188189
else do
189190
for_ warnings \warnings_ -> do
190191
let anns = Array.mapMaybe (toAnnotation MarkerWarning) warnings_

0 commit comments

Comments
 (0)