Skip to content

Commit 46c5db1

Browse files
committed
fix(entropy-explorer): fix infinite spinner
The `Paginator` suspense boundary was incorrectly referring to the `<Paginator>` component in the fallback case, which was a circular reference and caused the stack to blow up, caused the browser loading spinner to go on indefinitely, and is causing a bunch of errors in the Vercel logs. This commit fixes that issue.
1 parent 332c3ea commit 46c5db1

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

apps/entropy-explorer/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/entropy-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"fix:lint:eslint": "eslint --fix .",
1313
"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
1414
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_34F8THr7mZ3eAOQoCLdo8xWj9fdT vercel env pull",
15-
"start:dev": "next dev --port 3006 --turbopack",
15+
"start:dev": "next dev --port 3006",
1616
"start:prod": "next start --port 3006",
1717
"test:format": "prettier --check .",
1818
"test:lint:eslint": "eslint . --max-warnings 0",

apps/entropy-explorer/src/components/Home/search-controls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const useSearchBar = () => {
5353
};
5454

5555
export const Paginator = (props: ComponentProps<typeof ResolvedPaginator>) => (
56-
<Suspense fallback={<Paginator {...props} />}>
56+
<Suspense>
5757
<ResolvedPaginator {...props} />
5858
</Suspense>
5959
);

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
pkgs.cli
5252
pkgs.git
5353
pkgs.libusb1
54+
pkgs.udev
5455
pkgs.nodejs
5556
pkgs.pkg-config
5657
pkgs.pnpm

0 commit comments

Comments
 (0)