docs(home): record slow-network acceptance

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
jesse-ux
2026-09-24 18:22:44 +08:00
co-authored by Claude Code
parent 25e32fe6fd
commit 1d1983b484
10 changed files with 159 additions and 21 deletions
+2 -3
View File
@@ -84,7 +84,6 @@ export function useBillingPanel(input: {
readonly initialTab: BillingPaneTab;
}) {
const seedAccount = input.account;
const [accountError, setAccountError] = useState("");
const [paymentPackages, setPaymentPackages] = useState<MembershipProduct[]>([]);
const [paymentEnabled, setPaymentEnabled] = useState(false);
const [packagesError, setPackagesError] = useState("");
@@ -160,7 +159,8 @@ export function useBillingPanel(input: {
}, []);
useEffect(() => {
void fetchPackages();
const timer = window.setTimeout(() => void fetchPackages(), 0);
return () => window.clearTimeout(timer);
}, [fetchPackages]);
useEffect(() => {
@@ -294,7 +294,6 @@ export function useBillingPanel(input: {
return {
account: toBillingAccount(seedAccount),
accountError,
activeSubscription,
createPayment,
currentProductCode,