Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(desktop): use licenseQuery key when refetching license state
Richie McIlroy56d49e83508d
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx b/apps/desktop/src/routes/(window-chrome)/settings/license.tsxindex 9345e1929..85c64a7e8 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/license.tsx@@ -77,7 +77,9 @@ export default function Page() {generalSettingsStore.set({commercialLicense: undefined,});- queryClient.refetchQueries({ queryKey: ["bruh"] });+ queryClient.refetchQueries({+ queryKey: ["licenseQuery"],+ });}}>Deactivate License@@ -132,7 +134,7 @@ function LicenseKeyActivate(props: {},onSuccess: (value, { licenseKey }) => {props.onActivated({ ...value, licenseKey });- queryClient.refetchQueries({ queryKey: ["bruh"] });+ queryClient.refetchQueries({ queryKey: ["licenseQuery"] });},}));@@ -250,7 +252,7 @@ function CommercialLicensePurchase() {</div><divonClick={() => setIsCommercialAnnual((v) => !v)}- class="px-3 py-2 text-center rounded-full border border-transparent transition-all duration-200 cursor-pointer w-fit bg-gray-5 hover:border-gray-400"+ class="px-3 py-2 text-center rounded-full border border-transparent transition-all duration-200 w-fit bg-gray-5 hover:border-gray-400"><p class="text-xs text-gray-12">Switch to {isCommercialAnnual() ? "lifetime" : "yearly"}:{" "}@@ -305,7 +307,7 @@ function CommercialLicensePurchase() {licenseKey: value.licenseKey,},});- await queryClient.refetchQueries({ queryKey: ["bruh"] });+ await queryClient.refetchQueries({ queryKey: ["licenseQuery"] });}}/></>diff --git a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx b/apps/desktop/src/routes/(window-chrome)/upgrade.tsxindex 13a57bcb2..c9fd22ef7 100644--- a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx+++ b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx@@ -382,7 +382,7 @@ export default function Page() {</div><divonClick={() => setIsCommercialAnnual((v) => !v)}- class="px-3 py-2 text-center rounded-full border border-transparent transition-all duration-200 cursor-pointer bg-gray-5 hover:border-gray-400"+ class="px-3 py-2 text-center rounded-full border border-transparent transition-all duration-200 bg-gray-5 hover:border-gray-400"><p class="text-xs text-gray-12">Switch to {isCommercialAnnual() ? "lifetime" : "yearly"}@@ -429,7 +429,7 @@ export default function Page() {</Button><ponClick={() => setOpenLicenseDialog(true)}- class="mb-2 text-sm transition-colors cursor-pointer text-gray-11 hover:text-gray-12"+ class="mb-2 text-sm transition-colors text-gray-11 hover:text-gray-12">Already have a license key?</p>@@ -487,7 +487,7 @@ export default function Page() {</div><divonClick={() => setIsProAnnual((v) => !v)}- class="px-3 py-2 text-center bg-blue-500 rounded-full border border-transparent transition-all duration-200 cursor-pointer hover:border-blue-400"+ class="px-3 py-2 text-center bg-blue-500 rounded-full border border-transparent transition-all duration-200 hover:border-blue-400"><p class="text-xs text-solid-white">Switch to {isProAnnual() ? "monthly" : "yearly"}:{" "}@@ -563,7 +563,7 @@ const ActivateLicenseDialog = ({ open, onOpenChange }: Props) => {licenseKey: value.licenseKey,},});- await queryClient.refetchQueries({ queryKey: ["bruh"] });+ await queryClient.refetchQueries({ queryKey: ["licenseQuery"] });},}));return (