File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/shared/src/react/billing Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @clerk/shared " : patch
3+ ---
4+
5+ Fix Stripe elements not loading by removing the ` billingEnabled ` gate from ` useStripeClerkLibs `
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import type { loadStripe } from '@stripe/stripe-js';
22
33import { defineKeepPreviousDataFn } from '../clerk-rq/keep-previous-data' ;
44import { useClerkQuery } from '../clerk-rq/useQuery' ;
5- import { useBillingHookEnabled } from '../hooks/useBillingHookEnabled' ;
65import { useClerk } from '../hooks/useClerk' ;
76
87type LoadStripeFn = typeof loadStripe ;
@@ -19,15 +18,12 @@ export type UseStripeClerkLibsResult = StripeClerkLibs | null;
1918function useStripeClerkLibs ( ) : UseStripeClerkLibsResult {
2019 const clerk = useClerk ( ) ;
2120
22- const billingEnabled = useBillingHookEnabled ( ) ;
23-
2421 const query = useClerkQuery ( {
2522 queryKey : [ 'clerk-stripe-sdk' ] ,
2623 queryFn : async ( ) => {
2724 const loadStripe = ( await clerk . __internal_loadStripeJs ( ) ) as LoadStripeFn ;
2825 return { loadStripe } ;
2926 } ,
30- enabled : billingEnabled ,
3127 staleTime : Infinity ,
3228 refetchOnWindowFocus : false ,
3329 placeholderData : defineKeepPreviousDataFn ( true ) ,
You can’t perform that action at this time.
0 commit comments