Skip to content

Commit 827f536

Browse files
committed
cleanup
1 parent f5c27e3 commit 827f536

File tree

5 files changed

+2
-18
lines changed

5 files changed

+2
-18
lines changed

packages/clerk-js/src/ui/contexts/CoreClerkContextWrapper.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export function CoreClerkContextWrapper(props: CoreClerkContextWrapperProps): JS
5252
<ClientContext.Provider value={clientCtx}>
5353
<SessionContext.Provider value={sessionCtx}>
5454
<OrganizationProvider
55-
// // @ts-expect-error - __internal_queryClient is not typed
56-
// queryClient={clerk.__internal_queryClient}
5755
{...organizationCtx.value}
5856
swrConfig={props.swrConfig}
5957
>

packages/react/src/contexts/ClerkContextProvider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export function ClerkContextProvider(props: ClerkContextProvider) {
9696
<OrganizationProvider
9797
// key={clerkStatus + queryStatus}
9898
{...organizationCtx.value}
99-
// queryClient={queryClient}
10099
>
101100
<AuthContext.Provider value={authCtx}>
102101
<UserContext.Provider value={userCtx}>

packages/react/src/isomorphicClerk.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
146146
private premountApiKeysNodes = new Map<HTMLDivElement, APIKeysProps | undefined>();
147147
private premountOAuthConsentNodes = new Map<HTMLDivElement, __internal_OAuthConsentProps | undefined>();
148148
private premountTaskChooseOrganizationNodes = new Map<HTMLDivElement, TaskChooseOrganizationProps | undefined>();
149-
private prefetchQueryClientStatus = false;
150149

151150
// A separate Map of `addListener` method calls to handle multiple listeners.
152151
private premountAddListenerCalls = new Map<
@@ -576,7 +575,7 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
576575

577576
// @ts-expect-error - queryClientStatus is not typed
578577
this.#eventBus.internal.retrieveListeners('queryClientStatus')?.forEach(listener => {
579-
// Since clerkjs exists it will call `this.clerkjs.on('status', listener)`
578+
// Since clerkjs exists it will call `this.clerkjs.on('queryClientStatus', listener)`
580579
// @ts-expect-error - queryClientStatus is not typed
581580
this.on('queryClientStatus', listener, { notify: true });
582581
});
@@ -625,11 +624,6 @@ export class IsomorphicClerk implements IsomorphicLoadedClerk {
625624
clerkjs.openWaitlist(this.preOpenWaitlist);
626625
}
627626

628-
// if (this.prefetchQueryClientStatus) {
629-
// // @ts-expect-error - queryClientStatus is not typed
630-
// this.clerkjs.getInternalQueryClient?.();
631-
// }
632-
633627
this.premountSignInNodes.forEach((props, node) => {
634628
clerkjs.mountSignIn(node, props);
635629
});

packages/shared/global.d.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,3 @@ interface ImportMetaEnv {
1010
interface ImportMeta {
1111
readonly env: ImportMetaEnv;
1212
}
13-
14-
declare module 'virtual:data-hooks/*' {
15-
// Generic export signatures to satisfy type resolution for virtual modules
16-
export const DataClientProvider: any;
17-
export const useSubscription: any;
18-
const mod: any;
19-
export default mod;
20-
}

packages/shared/src/react/providers/SWRConfigCompat.rq.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { PropsWithChildren } from 'react';
2+
import React from 'react';
23

34
/**
45
* @internal

0 commit comments

Comments
 (0)