We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0e0c5 commit 89df687Copy full SHA for 89df687
src/Try.res
@@ -4,7 +4,15 @@ let default = props => {
4
let (isOverlayOpen, setOverlayOpen) = React.useState(() => false)
5
6
let lazyPlayground = Next.Dynamic.dynamic(
7
- async () => await import(Playground.make),
+ async () => {
8
+ try {
9
+ await import(Playground.make)
10
+ } catch {
11
+ | JsExn(e) =>
12
+ Console.error2("Error loading Playground:", e)
13
+ JsExn.throw(e)
14
+ }
15
+ },
16
{
17
ssr: false,
18
loading: () => <span> {React.string("Loading...")} </span>,
0 commit comments