Skip to content

Commit 110548c

Browse files
committed
Don’t use defer, it causes a horrible UI flash with revalidate
1 parent 5c9a305 commit 110548c

File tree

4 files changed

+147
-190
lines changed

4 files changed

+147
-190
lines changed

apps/webapp/app/env.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ const EnvironmentSchema = z.object({
660660
TASK_EVENT_PARTITIONING_ENABLED: z.string().default("0"),
661661
TASK_EVENT_PARTITIONED_WINDOW_IN_SECONDS: z.coerce.number().int().default(60), // 1 minute
662662

663-
QUEUE_SSE_AUTORELOAD_INTERVAL_MS: z.coerce.number().int().default(10_000),
663+
QUEUE_SSE_AUTORELOAD_INTERVAL_MS: z.coerce.number().int().default(5_000),
664664
QUEUE_SSE_AUTORELOAD_TIMEOUT_MS: z.coerce.number().int().default(60_000),
665665
});
666666

apps/webapp/app/presenters/v3/QueueListPresenter.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class QueueListPresenter extends BasePresenter {
4141

4242
return {
4343
success: true as const,
44-
queues: this.getQueuesWithPagination(environment, page),
44+
queues: await this.getQueuesWithPagination(environment, page),
4545
pagination: {
4646
currentPage: page,
4747
totalPages: Math.ceil(totalQueues / this.perPage),

0 commit comments

Comments
 (0)