Use @probo/react-lazy instead of native React.lazy
close #58 Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import posthog from "posthog-js";
|
||||
import { PostHogProvider } from "posthog-js/react";
|
||||
import { lazy, StrictMode, Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { StrictMode, Suspense } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { HelmetProvider } from "react-helmet-async";
|
||||
import { RelayEnvironmentProvider } from "react-relay";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "./ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "./ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { lazy, Suspense } from "react";
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
import { useLocation } from "react-router";
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
|
||||
const FrameworkListView = lazy(() => import("./FrameworkListView"));
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
|
||||
const FrameworkView = lazy(() => import("./FrameworkView"));
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { ErrorBoundaryWithLocation } from "../../ErrorBoundary";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { useLocation } from "react-router";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
|
||||
const CreateControlView = lazy(() => import("./CreateControlView"));
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
|
||||
const PeopleListView = lazy(() => import("./PeopleListView"));
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
|
||||
const CreatePolicyView = lazy(() => import("./CreatePolicyView"));
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { Card, CardContent, CardFooter } from "@/components/ui/card";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
|
||||
const PolicyListView = lazy(() => import("./PolicyListView"));
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
|
||||
const PolicyView = lazy(() => import("./PolicyView"));
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PageTemplateSkeleton } from "@/components/PageTemplate";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { useLocation } from "react-router";
|
||||
import { ErrorBoundaryWithLocation } from "../ErrorBoundary";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user