@solidjs/start 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @refresh skip
|
|
2
|
-
import { ErrorBoundary as DefaultErrorBoundary, catchError
|
|
2
|
+
import { ErrorBoundary as DefaultErrorBoundary, catchError } from "solid-js";
|
|
3
3
|
import { isServer } from "solid-js/web";
|
|
4
4
|
import { HttpStatusCode } from "./HttpStatusCode";
|
|
5
|
-
|
|
5
|
+
import { DevOverlay } from "./dev-overlay";
|
|
6
6
|
export const ErrorBoundary = import.meta.env.DEV && import.meta.env.START_DEV_OVERLAY
|
|
7
7
|
? (props) => <DevOverlay>{props.children}</DevOverlay>
|
|
8
8
|
: (props) => {
|
|
@@ -8,7 +8,7 @@ const DevOverlayDialog =
|
|
|
8
8
|
return <></>;
|
|
9
9
|
}
|
|
10
10
|
: /* #__PURE__ */ clientOnly(() => import("./DevOverlayDialog"));
|
|
11
|
-
export
|
|
11
|
+
export function DevOverlay(props) {
|
|
12
12
|
const [errors, setErrors] = createSignal([]);
|
|
13
13
|
function resetError() {
|
|
14
14
|
setErrors([]);
|