Skip to content

Commit

Permalink
fix(passport): useloader in error boundry (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerbot committed Feb 17, 2023
1 parent b39bc01 commit c5b322a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions apps/passport/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ export function ErrorBoundary({ error }) {
}

export function CatchBoundary() {
const browserEnv = useLoaderData()
const caught = useCatch()
console.error('Caught in catch boundary', caught)
const params = useParams()
Expand Down Expand Up @@ -257,13 +256,6 @@ export function CatchBoundary() {
<ScrollRestoration />
<Scripts />
<LiveReload port={8002} />
<script
dangerouslySetInnerHTML={{
__html: `!window ? null : window.ENV = ${JSON.stringify(
browserEnv?.ENV
)}`,
}}
/>
</body>
</html>
)
Expand Down

0 comments on commit c5b322a

Please sign in to comment.