Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
⚡️ Disable prefetching on invite page links (#2671)
Luke Vellad3c09dbac452
diff --git a/apps/web/src/app/[locale]/invite/[urlId]/invite-page.tsx b/apps/web/src/app/[locale]/invite/[urlId]/invite-page.tsxindex a4727f14a..0e256f670 100644--- a/apps/web/src/app/[locale]/invite/[urlId]/invite-page.tsx+++ b/apps/web/src/app/[locale]/invite/[urlId]/invite-page.tsx@@ -34,6 +34,7 @@ const GoToApp = () => {<LinkclassName="inline-flex items-center gap-2 hover:underline"href={`/poll/${poll.id}`}+ prefetch={false}><Trans i18nKey="manage" defaults="Manage" /><ArrowUpRightIcon className="size-4" />diff --git a/apps/web/src/features/poll/components/create-poll.tsx b/apps/web/src/features/poll/components/create-poll.tsxindex c1d03578a..7d3e21ba6 100644--- a/apps/web/src/features/poll/components/create-poll.tsx+++ b/apps/web/src/features/poll/components/create-poll.tsx@@ -230,6 +230,7 @@ export const CreatePoll: React.FunctionComponent = () => {<Linkhref={`/invite/${createdPollId}`}+ prefetch={false}className={buttonVariants()}onClick={() => {posthog?.capture("poll_creation:view_button_click");diff --git a/apps/web/src/features/poll/components/invite-dialog.tsx b/apps/web/src/features/poll/components/invite-dialog.tsxindex 59f0b5c22..35bd7a9b3 100644--- a/apps/web/src/features/poll/components/invite-dialog.tsx+++ b/apps/web/src/features/poll/components/invite-dialog.tsx@@ -86,6 +86,7 @@ export const InviteDialog = () => {<Linktarget="_blank"href={`/invite/${poll.id}`}+ prefetch={false}className={buttonVariants()}><ArrowUpRightIcon className="size-4" />