docs(home): record slow-network acceptance
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user