-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: extra character left in codemirror when updating code from the outside * loading screen timeout * version bump * fix: small style update * fix: timeout value
- Loading branch information
Showing
5 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,33 @@ export const LoadingOverlay: React.FC = () => { | |
return null; | ||
} | ||
|
||
if (loadingOverlayState === "timeout") { | ||
return ( | ||
<div className={c("overlay", "error")}> | ||
<div className={c("error-message")}> | ||
Unable to establish connection with the sandpack bundler. Make sure | ||
you are online or try again later. If the problem persists, please | ||
report it via{" "} | ||
<a | ||
className={c("error-message")} | ||
href="mailto:[email protected]?subject=Sandpack Timeout Error" | ||
> | ||
</a>{" "} | ||
or submit an issue on{" "} | ||
<a | ||
className={c("error-message")} | ||
href="https://github.com/codesandbox/sandpack/issues" | ||
rel="noreferrer noopener" | ||
target="_blank" | ||
> | ||
GitHub. | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
return ( | ||
<div | ||
className={c("overlay", "loading")} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters