Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update furever to reduce API calls #204

Merged

Conversation

kushalshah-stripe
Copy link
Collaborator

No description provided.

@kushalshah-stripe kushalshah-stripe merged commit 8fd5923 into v2-accounts-main Dec 3, 2024
2 checks passed
@kushalshah-stripe kushalshah-stripe deleted the kushalshah/streamline-get-account-calls branch December 3, 2024 22:21
@@ -26,7 +26,7 @@ export const SubscriptionsBanner = () => {
fetchSubscription().then(({subscriptions}) => {
setShowBanner(subscriptions.length === 0);
});
}, []);
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this happen on every component update now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya. I started noticing now with the dedupped retrieve calls in app/api/account_session/route.ts

That the subscriptions was getting stale. Ima followup and cache the subscriptions api. Though I tested an it really isn't that bad since the only component updates are switching pages.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants