Skip to content

Commit

Permalink
chore: bump sonner (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske authored Oct 6, 2024
1 parent f592b10 commit b081781
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"resend": "4.0.0",
"rss": "1.2.2",
"shiki": "0.14.4",
"sonner": "1.3.1",
"sonner": "1.5.0",
"stripe": "13.8.0",
"superjson": "1.13.3",
"tailwind-merge": "1.14.0",
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/app/play/checker/_components/checker-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export function CheckerForm({ defaultValues, defaultData }: CheckerFormProps) {

const toastId = toast.loading("Loading data from regions...", {
duration: Number.POSITIVE_INFINITY,
closeButton: false,
});

try {
Expand Down
4 changes: 4 additions & 0 deletions apps/web/src/app/play/checker/api/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
storeCheckerData,
} from "@/components/ping-response-analysis/utils";
import { iteratorToStream, yieldMany } from "@/lib/stream";
import { wait } from "@/lib/utils";
import { flyRegions } from "@openstatus/db/src/schema/constants";
import { mockCheckRegion } from "./mock";

Expand Down Expand Up @@ -50,6 +51,9 @@ async function* makeIterator({
}

async function* generator(id: string) {
// wait for 200ms to avoid racing condition with the last check
await wait(200);

yield await Promise.resolve(encoder.encode(id));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
},
"peerDependencies": {
"next-themes": "0.2.1",
"sonner": "1.3.1"
"sonner": "1.5.0"
}
}
32 changes: 18 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b081781

Please sign in to comment.